From 47490c79be16fcdf043ff4f0958da987c107d9a0 Mon Sep 17 00:00:00 2001 From: step21 Date: Wed, 31 Oct 2018 07:56:16 +0100 Subject: [PATCH] Moving the flags of the compiled regex to the front to fix #4137 --- src/borg/shellpattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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