Browse Source

Revert "Allow dashes in variable key names"

This reverts commit b92336aa95.

Change-Id: I0c682f13af83febc862a927f389a547b851e41c0
Signed-off-by: Thanh Ha <zxiiro@linux.com>
tags/2.2.1^0
Thanh Ha 10 months ago
parent
commit
c33dbaaaae
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      jenkins_jobs/formatter.py

+ 1
- 1
jenkins_jobs/formatter.py View File

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

Loading…
Cancel
Save