Moving the flags of the compiled regex to the front to fix #4137

This commit is contained in:
step21
2018-11-02 00:37:35 +01:00
parent 2a3b534a61
commit 27eeef242a
+1 -1
View File
@@ -62,4 +62,4 @@ def translate(pat, match_end=r"\Z"):
else:
res += re.escape(c)
return res + match_end + "(?ms)"
return "(?ms)" + res + match_end