Skip to content

Commit b809870

Browse files
committed
fix: permit instance variable values to contain dashes
1 parent 91e099b commit b809870

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gcasc/instance_variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def _validate(self, errors): # type: (ValidationResult) -> ()
9696
errors.add("must have at least 8 chars to be masked", path=path)
9797
if "\n" in value:
9898
errors.add("must be in a single line to be masked", path=path)
99-
if not bool(re.match(r"[a-zA-Z0-9+/=@:]+$", value)):
99+
if not bool(re.match(r"[a-zA-Z0-9+/=@:\-]+$", value)):
100100
errors.add(
101-
"must consist only of characters from Base64 alphabet plus '@', ':'",
101+
"must consist only of characters from Base64 alphabet plus '@', ':', '-'",
102102
path=path,
103103
)
104104
return errors

0 commit comments

Comments
 (0)