Python: Fix inefficient string comparison

This commit is contained in:
Taus
2024-04-15 15:23:01 +00:00
parent 8ec414d454
commit 25cb52aa52

View File

@@ -1,9 +1,8 @@
import python
from string k, string v
where k.prefix(8) = "options." and
not k.prefix(14) = "options.verbos" and
py_flags_versioned(k, v, _)
where
not k.matches("options.%") and
not k.matches("options.verbos%") and
py_flags_versioned(k, v, _)
select k, v