You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String does not match '^.*$' (which is regex for "anything")
E3031 '#if($context.identity.claims.account_type == "ADMIN") \n #return\n#else\n $util.error("MUST BE ADMIN")\n#end\n' does not match '^.*$'
testing2.yaml:29:7
Looks like the re.search doesn't do multiline pattern matching so the newlines are throwing it off. Instead of spending resources validating that its a string it just makes sense to remove it. This field is related to some boto automation in which we are taking patterns from botocore. We had an exception for "." so added one for "^.$" as well.
CloudFormation Lint Version
1.17.2
What operating system are you using?
Mac
Describe the bug
(Introduced In
1.17.0
, works in1.16.1
)String does not match '^.*$' (which is regex for "anything")
Expected behavior
It passes
Reproduction template
The text was updated successfully, but these errors were encountered: