Skip to content

Commit

Permalink
Merge pull request #283 from snipsco/hotfix/regex-escaping
Browse files Browse the repository at this point in the history
Regex escaping
  • Loading branch information
Adrien Ball authored Jun 12, 2017
2 parents d0f7375 + 78379d8 commit a651b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snips_nlu/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.3
0.8.4
2 changes: 1 addition & 1 deletion snips_nlu/intent_parser/regex_intent_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
SPACE = " "
WHITE_SPACES = "%s\t\n\r\f\v" % SPACE # equivalent of r"\s"
IGNORED_CHARACTERS = "%s.,;/:+*-`\"(){}" % WHITE_SPACES
IGNORED_CHARACTERS_PATTERN = r"[%s]*" % IGNORED_CHARACTERS
IGNORED_CHARACTERS_PATTERN = r"[%s]*" % regex_escape(IGNORED_CHARACTERS)


def get_index(index):
Expand Down

0 comments on commit a651b16

Please sign in to comment.