mirror of https://github.com/borgbackup/borg.git
Moving the flags of the compiled regex to the front to fix #4137
This commit is contained in:
parent
2a3b534a61
commit
27eeef242a
|
@ -62,4 +62,4 @@ def translate(pat, match_end=r"\Z"):
|
||||||
else:
|
else:
|
||||||
res += re.escape(c)
|
res += re.escape(c)
|
||||||
|
|
||||||
return res + match_end + "(?ms)"
|
return "(?ms)" + res + match_end
|
||||||
|
|
Loading…
Reference in New Issue