aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command_lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/command_lexer.py')
-rw-r--r--mitmproxy/command_lexer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/command_lexer.py b/mitmproxy/command_lexer.py
index f042f3c9..31458f4d 100644
--- a/mitmproxy/command_lexer.py
+++ b/mitmproxy/command_lexer.py
@@ -12,9 +12,9 @@ PartialQuotedString = pyparsing.Regex(
r'''
(["']) # start quote
(?:
- (?!\1)[^\\] # unescaped character that is not our quote nor the begin of an escape sequence. We can't use \1 in []
- |
(?:\\.) # escape sequence
+ |
+ (?!\1). # unescaped character that is not our quote nor the begin of an escape sequence. We can't use \1 in []
)*
(?:\1|$) # end quote
''',