One of the options for scripts is --filter which can accept property IDs such as P143. However, the way we check this has a bug, where it will also match properties such as P1436.
def should_fix(fix, filters):
return any(filter in fix.summary for filter in filters)
Proposed Solution
Split the summary by spaces (and other token characters), and then for each filter, check containment, instead of checking the string directly.
Problem
One of the options for scripts is
--filter
which can accept property IDs such asP143
. However, the way we check this has a bug, where it will also match properties such asP1436
.Proposed Solution
Split the summary by spaces (and other token characters), and then for each filter, check containment, instead of checking the string directly.