Created
July 22, 2022 13:12
-
-
Save jamiekt/ca41cf4e3a191e3845f96b332ef6a216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefixes = set() | |
for matched_policy in matched_policies: | |
search_result = re.search(r_search, matched_policy) | |
assert search_result is not None | |
prefixes.add(search_result.group(0)) | |
return prefixes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment