Explorar o código

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

step21 %!s(int64=6) %!d(string=hai) anos
pai
achega
27eeef242a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/shellpattern.py

+ 1 - 1
src/borg/shellpattern.py

@@ -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