mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-19 23:16:44 +00:00
Return text instead of an empty string in func_rreplace in case of error
This commit is contained in:
@@ -445,7 +445,7 @@ def func_rreplace(parser, text, old, new):
|
||||
try:
|
||||
return re.sub(old, new, text)
|
||||
except re.error:
|
||||
return ""
|
||||
return text
|
||||
|
||||
|
||||
def func_rsearch(parser, text, pattern):
|
||||
|
||||
Reference in New Issue
Block a user