5 ms·
You need to make that exclude match = ... since match can also be a variable name. This is because people used to write code like match = re.search(...)
by PokestarFan 1y ago
You need to make that exclude match = ... since match can also be a variable name. This is because people used to write code like match = re.search(...)
- TheDong 1y agoThe existing pattern suggested above, "match ...:", will not match 'match = ...'. Presumably the reason the parent comment suggested semgrep, not just a grep, is because they're aware that naive substring matching would be wrong. You could use the playground to check your understanding before implying someone is an idiot. https://semgrep.dev/playground/new https://semgrep.dev/playground/new