Skip to content

Commit 1e32e50

Browse files
authored
Case insensitive pattern (#4090)
1 parent c8d477c commit 1e32e50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/update_schemas_manually.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@
16431643
patches=[
16441644
Patch(
16451645
values={
1646-
"pattern": "^((?![aA][wW][sS]|[sS]{2}[mM])[\w.-]+|\/(?![aA][wW][sS]|[sS]{2}[mM])[\w.-]+(\/[\w.-]+)*)$"
1646+
"pattern": "^(?i)((?!aws|ssm)[\w.-]+|\/(?!aws|ssm)[\w.-]+(\/[\w.-]+)*)$"
16471647
},
16481648
path="/properties/Name",
16491649
),

src/cfnlint/data/schemas/patches/extensions/all/aws_ssm_parameter/manual.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
{
33
"op": "add",
44
"path": "/properties/Name/pattern",
5-
"value": "^((?![aA][wW][sS]|[sS]{2}[mM])[\\w.-]+|\\/(?![aA][wW][sS]|[sS]{2}[mM])[\\w.-]+(\\/[\\w.-]+)*)$"
5+
"value": "^(?i)((?!aws|ssm)[\\w.-]+|\\/(?!aws|ssm)[\\w.-]+(\\/[\\w.-]+)*)$"
66
}
77
]

src/cfnlint/data/schemas/providers/us_east_1/aws-ssm-parameter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Name": {
2727
"maxLength": 2048,
2828
"minLength": 1,
29-
"pattern": "^((?![aA][wW][sS]|[sS]{2}[mM])[\\w.-]+|\\/(?![aA][wW][sS]|[sS]{2}[mM])[\\w.-]+(\\/[\\w.-]+)*)$",
29+
"pattern": "^(?i)((?!aws|ssm)[\\w.-]+|\\/(?!aws|ssm)[\\w.-]+(\\/[\\w.-]+)*)$",
3030
"type": "string"
3131
},
3232
"Policies": {

0 commit comments

Comments
 (0)