Skip to content

Commit 8db04ea

Browse files
authored
Merge pull request #2532 from olebole/fix-regexp
Fix regexp for command parser
2 parents 315b8e8 + dc3066a commit 8db04ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glue/core/parse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# character that is not curly brackets (i.e. [^\{\}]) and has to start and
1212
# end with a character that is not a curly bracket or a space. The component
1313
# name can be surrounded by spaces, e.g. '{ a }'
14-
TAG_RE = re.compile('\{\s*(?P<tag>[^\s\{\}]+([^\{\}]*[^\s\{\}]+)?)\s*\}')
14+
TAG_RE = re.compile(r'\{\s*(?P<tag>[^\s\{\}]+([^\{\}]*[^\s\{\}]+)?)\s*\}')
1515

1616
__all__ = ['ParsedCommand', 'ParsedSubsetState']
1717

0 commit comments

Comments
 (0)