diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-04 22:43:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-04 22:43:19 +0900 |
| commit | 9e34f37febc9e25bb717abc2bd7398cd877ec1a3 (patch) | |
| tree | 9a2b1010ae58dc29aa87162738db6bb110c67c4a /crates/shirabe/src/filter | |
| parent | 865065217f0e79ca2b359a5c60a2b49b97ff67f8 (diff) | |
| download | php-shirabe-9e34f37febc9e25bb717abc2bd7398cd877ec1a3.tar.gz php-shirabe-9e34f37febc9e25bb717abc2bd7398cd877ec1a3.tar.zst php-shirabe-9e34f37febc9e25bb717abc2bd7398cd877ec1a3.zip | |
fix(class-map-generator): avoid unsupported regex backreference/lookahead in heredoc detection
PhpFileCleaner's heredoc-start pattern used a `\1` backreference to
match the closing quote, and skip_heredoc's delimiter boundary check
used a `(?!...)` negative lookahead. The `regex` crate supports
neither, so it panicked with "invalid regex" whenever a scanned PHP
file contained a heredoc/nowdoc (e.g. vendor code pulled in via
`composer create-project`). The backreference is expanded into three
quote-state alternatives, and the lookahead becomes a direct check of
the next byte.
Diffstat (limited to 'crates/shirabe/src/filter')
0 files changed, 0 insertions, 0 deletions
