Skip to content

Keep file globs that read as numbers as strings to close #733 - #745

Merged
mathiasrw merged 3 commits into
mainfrom
fix/733
Oct 22, 2026
Merged

mathiasrw merged 3 commits into
mainfrom
fix/733

Conversation

@mathiasrw

@mathiasrw mathiasrw commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Closes #733

Change

  • The yargs option parse-positional-numbers is set to false, so a file glob like 2024, 1e3 or 0x10 is kept as the string that was given and not turned into a number.
  • The test.todo for A file named only with digits crashes RexReplace #733 is now a real test that runs the CLI with 2024, 1e3 and 0x10.

Good to know

  • --exclude-glob and --exclude-re are declared as strings, so they did not have the bug.
  • argmate keeps 2024, 1e3 and 0x10 as strings, so this does not come back when we move to argmate.

@mathiasrw
mathiasrw changed the base branch from fix/742 to main October 22, 2026 19:04
@mathiasrw mathiasrw closed this Oct 22, 2026
@mathiasrw mathiasrw reopened this Oct 22, 2026
@mathiasrw
mathiasrw merged commit 88c6eec into main Oct 22, 2026
7 checks passed
@mathiasrw
mathiasrw deleted the fix/733 branch October 23, 2026 00:33
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.

A file named only with digits crashes RexReplace

1 participant