Skip to content

Use stricter isdecimal() method instead of isdigit() - #431

Merged
kristian-clausal merged 1 commit into
mainfrom
isidigit
Sep 14, 2026
Merged

kristian-clausal merged 1 commit into
mainfrom
isidigit

Conversation

@kristian-clausal

Copy link
Copy Markdown
Collaborator

Fixes #428

isdigit() string method will let through superscript digits and stuff like circled, specially formatted numbers, which will break int() if tryin to cast into an integer.

`isdigit()` string method will let through superscript
digits and stuff like circled, specially formatted numbers,
which will break `int()` if tryin to cast into an integer.
@kristian-clausal
kristian-clausal merged commit 65e1673 into main Sep 14, 2026
12 checks passed
@kristian-clausal
kristian-clausal deleted the isidigit branch September 14, 2026 09:23
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.

Invalid literal while parsing the English gloss template

1 participant