Skip to content

Commit 4c5154e

Browse files
authored
Update regex dynamic ref for ssm (#4170)
1 parent df01b92 commit 4c5154e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cfnlint/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
r"^(((?=.*(::))(?!.*\3.+\3))\3?|[\dA-F]{1,4}:)([\dA-F]{1,4}(\3|:\b)|\2){5}(([\dA-F]{1,4}(\3|:\b|$)|\2){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})\Z",
143143
re.I | re.S,
144144
)
145-
REGEX_DYN_REF = re.compile(r"^.*{{\s*(resolve:.+)\s*}}.*$")
145+
REGEX_DYN_REF = re.compile(r"^.*{{(resolve:.+)}}.*$")
146146
REGEX_DYN_REF_SSM = re.compile(r"^.*{{resolve:ssm:[a-zA-Z0-9_\.\-/]+(:\d+)?}}.*$")
147147
REGEX_DYN_REF_SSM_SECURE = re.compile(
148148
r"^.*{{resolve:ssm-secure:[a-zA-Z0-9_\.\-/]+(:\d+)?}}.*$"

0 commit comments

Comments
 (0)