tailwindcss/crates/oxide
Jordan Pittman 6220cb8749 Fix Ruby files causing the CLI to hang (#17383)
Fixes #17379

The preprocessor we added to detect embedded languages uses a back
reference and given a long enough file with certain byte / character
patterns it'll cause what appears to be an indefinite hang (might just
be catastrophically exponential backtracking but not sure)

This replaces the one regex w/ back references with two, anchored,
multi-line regexes

Now we search for all the starting & ending delimiters in the file. We
then loop over all the starting delimiters, find the paired ending one,
and preprocess the content inside

---------

Co-authored-by: Philipp Spiess <hello@philippspiess.com>
2025-03-26 11:02:09 +01:00
..
fuzz Hoist oxide/crates to just crates (#13333) 2024-03-23 09:00:48 -04:00
src Fix Ruby files causing the CLI to hang (#17383) 2025-03-26 11:02:09 +01:00
tests Improve Oxide candidate extractor [0] (#16306) 2025-03-05 11:55:24 +01:00
Cargo.toml Fix Ruby files causing the CLI to hang (#17383) 2025-03-26 11:02:09 +01:00