Skip to content

Commit

Permalink
Network items are case insensitive (#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Jun 6, 2024
1 parent c40eb89 commit bb83a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cfnlint/rules/formats/SecurityGroupId.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def format(self, validator: Validator, instance: Any) -> bool:
if not isinstance(instance, str):
return True

if re.match(r"^sg-([a-z0-9]{8}|[a-z0-9]{17})$", instance):
if re.match(r"^sg-([a-zA-Z0-9]{8}|[a-zA-Z0-9]{17})$", instance):
return True

return False
2 changes: 1 addition & 1 deletion src/cfnlint/rules/formats/VpcId.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def format(self, validator: Validator, instance: Any) -> bool:
if not isinstance(instance, str):
return True

if re.match(r"^vpc-(([0-9a-z]{8})|([0-9a-z]{17}))$", instance):
if re.match(r"^vpc-(([0-9A-Za-z]{8})|([0-9A-Za-z]{17}))$", instance):
return True

return False

0 comments on commit bb83a0d

Please sign in to comment.