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:
parent
cb6641d7f8
commit
c33dbaaaae
@ -84,7 +84,7 @@ class CustomFormatter(Formatter):
|
|||||||
_expr = """
|
_expr = """
|
||||||
(?<!{){({{)* # non-pair opening {
|
(?<!{){({{)* # non-pair opening {
|
||||||
(?:obj:)? # obj:
|
(?:obj:)? # obj:
|
||||||
(?P<key>[\w\-]+) # key
|
(?P<key>\w+) # key
|
||||||
(?:\|(?P<default>[^}]*))? # default fallback
|
(?:\|(?P<default>[^}]*))? # default fallback
|
||||||
}(}})*(?!}) # non-pair closing }
|
}(}})*(?!}) # non-pair closing }
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user