зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1265063 - Fix the shell quoting regexp to properly match backslashes. r=gps
This commit is contained in:
Родитель
a31594bc4d
Коммит
0037774d91
|
@ -41,7 +41,7 @@ ESCAPED_NEWLINES_RE = re.compile(r'\\\n')
|
|||
|
||||
# This regexp contains the same characters as all those listed in
|
||||
# UNQUOTED_TOKENS_RE. Please keep in sync.
|
||||
SHELL_QUOTE_RE = re.compile('[\\\t\r\n \'\"#<>&|`~(){}$;\*\?]')
|
||||
SHELL_QUOTE_RE = re.compile(r'[\\\t\r\n \'\"#<>&|`~(){}$;\*\?]')
|
||||
|
||||
|
||||
class MetaCharacterException(Exception):
|
||||
|
|
Загрузка…
Ссылка в новой задаче