diff --git a/src/borg/shellpattern.py b/src/borg/shellpattern.py index f71c3b9ce..899544975 100644 --- a/src/borg/shellpattern.py +++ b/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