Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nth formatting for values above 20 #83

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

voxpelli
Copy link
Contributor

While 11th, 12th, 13th uses th all other numbers that end with 1, 2 or 3 use same suffix as the base 1, 2 and 3

For reference, see eg: https://www.mathsisfun.com/numbers/cardinal-ordinal-chart.html

Fixes #74

@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Aug 15, 2024
@antfu antfu merged commit 1c0ecf1 into eslint:main Aug 15, 2024
7 checks passed
@github-actions github-actions bot mentioned this pull request Aug 15, 2024
@voxpelli voxpelli deleted the voxpelli/issue74 branch August 15, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nth function breaks on large numbers, causing inconsistencies
2 participants