-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Problem
Given the following resource description:
arn:<hidden>:log-group:???-dummy:*
Wonk fails on this.
Cause
Wonk tries to use this string as a regex to find out if multiple, more specific strings, match. This happens here.
To do so, wonk replaces * with .* in order to match with regex syntax in python. The question mark, which also needs a character in front of it, is not adjusted.
Potential solution
I believe it makes sense to also replace the questionmark using the following code:
pattern_string = item.replace("?", ".?")If I understand the semantics of wonk correctly in this part, this should solve the error while also looking for more specific strings.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels