Skip to content

fix: allow Mongolian ordinal zero without IndexError#675

Open
santhreal wants to merge 1 commit into
savoirfairelinux:masterfrom
santhreal:fix/mn-ordinal-zero
Open

fix: allow Mongolian ordinal zero without IndexError#675
santhreal wants to merge 1 commit into
savoirfairelinux:masterfrom
santhreal:fix/mn-ordinal-zero

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

lang_MN._get_ordinal_suffix hits IndexError when ordinal 0: number_str[-2] on single-digit string. This PR fixes the regression with a focused test covering the case.

_get_ordinal_suffix read number_str[-2] for values ending in 0, which
crashes on the single-digit string 0. Guard the tens lookbehind.
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