Skip to content

Commit

Permalink
Update escape string
Browse files Browse the repository at this point in the history
  • Loading branch information
petronny committed Feb 9, 2015
1 parent fe5cc0d commit b1d2bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinyin-comp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def expand_leading_tilda(path):
return os.path.expanduser(path)

def escape_string(candicate):
return re.sub(r'([" |\'&\[\]])', r'\\\1',candicate)
return re.sub(r'([\" |\'&\[\]])', r'\\\1',candicate)

if __name__ == '__main__':

Expand Down

0 comments on commit b1d2bf5

Please sign in to comment.