Merge pull request #20495 from github/tausbn/python-fix-unmatchable-dollar-in-lookahead

Python: Fix false positive for unmatchable dollar/caret
This commit is contained in:
Taus
2025-09-25 15:27:32 +02:00
committed by GitHub
5 changed files with 66 additions and 29 deletions

View File

@@ -0,0 +1,5 @@
---
category: minorAnalysis
---
- The queries that check for unmatchable `$` and `^` in regular expressions did not account correctly for occurrences inside lookahead and lookbehind assertions. These occurrences are now handled correctly, eliminating this source of false positives.