Skip to content

Commit 3cc4012

Browse files
authored
Allow _ in condition names (#4008)
* Allow _ in condition names
1 parent 0ac4309 commit 3cc4012

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cfnlint/data/schemas/other/conditions/conditions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"additionalProperties": false,
33
"patternProperties": {
4-
"^[a-zA-Z0-9&]{1,255}$": {
4+
"^[a-zA-Z0-9&_]{1,255}$": {
55
"type": "boolean"
66
}
77
},

test/unit/rules/conditions/test_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_condition(self):
3232
path=deque(["bar"]),
3333
rule=Configuration(),
3434
schema_path=deque(
35-
["patternProperties", "^[a-zA-Z0-9&]{1,255}$", "type"]
35+
["patternProperties", "^[a-zA-Z0-9&_]{1,255}$", "type"]
3636
),
3737
validator="type",
3838
validator_value="boolean",

0 commit comments

Comments
 (0)