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

input restriction #3657

Merged
merged 19 commits into from
Nov 10, 2023
2 changes: 1 addition & 1 deletion src/textual/widgets/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

_RESTRICT_TYPES = {
"integer": r"[-+]?\d*",
"number": r"[-+]?\d*\.?\d*[eE]?-?\d*",
"number": r"[-+]?\d*\.?\d*[eE]?[-+]?\d*",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I've missed the boat on this one now, but while out running I realised there's one more thing should probably happen here: at the very least the decimal point in the above should use locale.localeconv()["decimal_point"] rather than hard-code ..

I'll add an issue.

"text": None,
}

Expand Down
Loading