Revert "Allow dashes in variable key names"

This reverts commit b92336aa95.

Change-Id: I0c682f13af83febc862a927f389a547b851e41c0
Signed-off-by: Thanh Ha <zxiiro@linux.com>
This commit is contained in:
Thanh Ha 2018-07-27 22:46:30 -04:00
parent cb6641d7f8
commit c33dbaaaae
No known key found for this signature in database
GPG Key ID: B0CB27E00DA095AA

View File

@ -84,7 +84,7 @@ class CustomFormatter(Formatter):
_expr = """
(?<!{){({{)* # non-pair opening {
(?:obj:)? # obj:
(?P<key>[\w\-]+) # key
(?P<key>\w+) # key
(?:\|(?P<default>[^}]*))? # default fallback
}(}})*(?!}) # non-pair closing }
"""