Skip to content

Keep stepped negative regex padding aligned with expanded values - #24

Open
oyeong011 wants to merge 1 commit into
jonschlinkert:masterfrom
oyeong011:fix/verified-regression
Open

oyeong011 wants to merge 1 commit into
jonschlinkert:masterfrom
oyeong011:fix/verified-regression

Conversation

@oyeong011

Copy link
Copy Markdown

The stepped numeric regex path pads absolute negative values to the full signed width, adding one extra zero. Subtract the separately emitted minus sign from that width.

The regression fails before the change and passes afterward. Coverage includes ascending/descending and mixed-sign stepped ranges.

Validation: 68 tests, 855,412 generated patterns. npm test cannot find undeclared eslint; npx eslint@5.16.0 index.js test/padding.js passes.

AI assistance: OpenAI Codex was used to investigate, implement, and run the regression and full-suite checks.

The stepped numeric regex path pads absolute negative values to the full signed width, adding one extra zero. Subtract the separately emitted minus sign from that width.

Confidence: high
Scope-risk: narrow
Tested: Regression red/green, full test suite, exported API QA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant