Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable merge risk remains from the supplied changes; the PR is mergeable after normal checks. Pre-merge checks ·
|
|
Is it you real use issue or LLM suggest you to fix this? |
|
@ai This was discovered by an LLM during a proactive source audit, not an issue I encountered in an application. I reproduced it through the public API: parsing |
|
Please don't find random issues with LLM. It is bad unethical practice. It increases complexity by covering cases nobody want. It is OK to send PRs where you are sure that somebody will need it. |
Global and sticky regular expressions retain
lastIndexbetween tests. The regexp forms ofwalkDecls(),walkRules(), andwalkAtRules()therefore skip matching sibling nodes. For example, walking threecolordeclarations with/color/gvisits only the first and third declarations.Reset stateful regexp matching before checking each candidate node. Add coverage for all three walkers with both flags, nested nodes, an initial nonzero
lastIndex, and reusing the same regexp for another traversal.Validation:
NO_COLORunset andFORCE_COLOR=1so the existing color-output tests use the requested mode.pnpm test:lint,pnpm test:types, andpnpm test:size: pass. Built size 15.56 kB, under the 16.5 kB limit.git diff --check: pass.Discovery origin: this case was identified by automated OpenAI
gpt-6.1-solsource review during this contribution. The evidence is the minimal API reproduction and the regression tests above; there is no production usage report. The same agent implemented and validated the patch with xhigh reasoning.