fix(rules): ensure lookbehind regex is evaluated correctly by minifiers#3945
Conversation
* Use a default variable in the regex to prevent removal by minifiers
|
@christophe-g is attempting to deploy a commit to the MarkedJS Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Code Review
This pull request modifies the supportsLookbehind detection logic in src/rules.ts by introducing a default parameter to the detection function. This change prevents minifiers from potentially removing the regex evaluation during build-time optimization, ensuring the feature detection occurs correctly at runtime. There were no review comments provided, and I have no additional feedback to provide.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi, can this PR be merged? I'm using Vite 8 and it seems there's no way to disable RegExp compression, so this PR is very helpful. |
## [18.0.1](v18.0.0...v18.0.1) (2026-04-17) ### Bug Fixes * **rules:** ensure lookbehind regex is evaluated correctly by minifiers ([#3945](#3945)) ([abd907a](abd907a))
Use a default variable in the regex to prevent removal by minifiers.
This is a very minor change that fix #3944 downstream