mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26341 (again) -- Addressed multiple occurrences per line use case
This commit is contained in:
@@ -136,7 +136,7 @@ class BuildFile(object):
|
||||
|
||||
return re.sub(
|
||||
r'^(#: .*)(' + re.escape(old_path) + r')',
|
||||
r'\1' + new_path,
|
||||
lambda match: match.group().replace(old_path, new_path),
|
||||
msgs,
|
||||
flags=re.MULTILINE
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user