vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

[SonarCloud] Suppress warning `Python:S5852` or replace the affected RegEx strings with non-* equivalent #1691

Closed PPsyrius closed 7 months ago

PPsyrius commented 7 months ago

From SonarCloud check, for dev branch

Make sure the regex used here, which is vulnerable to polynomial runtime due to backtracking, cannot lead to denial of service.

Using slow regular expressions is security-sensitivepython:S5852

All 3 affected instances are: