mirror of
https://github.com/darlinghq/darling.git
synced 2025-02-17 08:09:10 +00:00
Improve rename-target regex
This commit is contained in:
parent
128db97f82
commit
ac94c1365c
@ -19,7 +19,7 @@ def editfile(f, old, new):
|
||||
|
||||
f.seek(0)
|
||||
|
||||
contents = re.sub(old, new, contents)
|
||||
contents = re.sub("([^\w])" + old + "([^\w])", r"\1" + new + r"\2", contents)
|
||||
|
||||
f.write(contents)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user