Skip to content

Treat leading-zero slugs as numeric conflicts - #1046

Open
fschwahn wants to merge 1 commit into
norman:masterfrom
fschwahn:numeric-bug
Open

Treat leading-zero slugs as numeric conflicts#1046
fschwahn wants to merge 1 commit into
norman:masterfrom
fschwahn:numeric-bug

Conversation

@fschwahn

Copy link
Copy Markdown
Contributor

Previously, numeric detection parsed the slug as an integer and compared the result, causing values such as 00123 to be treated as non-numeric. The check now matches ASCII digits directly.

Includes a regression test for leading-zero numeric slugs. (I ran into this issue when an international phone number was accidentally use as a slug)

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