Merge pull request #109 from blotus/master

Escape ' and " in matches
pull/107/merge
Yaroslav Halchenko 2013-01-25 08:11:04 -08:00
commit 7d630cb0de
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class Action:
return Action.executeCmd(stopCmd)
def escapeTag(tag):
for c in '\\#&;`|*?~<>^()[]{}$\n':
for c in '\\#&;`|*?~<>^()[]{}$\n\'"':
if c in tag:
tag = tag.replace(c, '\\' + c)
return tag