You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've read the project's code of conduct, and agree to follow it.
Don't report security issues here
I've read the project's security policy, and I do not believe this bug is a security issue.
Is there an existing issue?
I've searched GitHub Issues, and I believe this is a new issue
What happened?
Started a new program, and used the action "Insert a whole number". The input box will accept any garbage (e.g. "abc"), and does not complain that it is not a number. (Unlike the "Insert a character", which validates that there is only one character added.)
What should have happened?
There should be something preventing me from submitting a nonsense string where a number is expected.
Which component(s) or aspect(s) of the project are the source of the issue?
one or more React components
Developers, please provide the output of the bug report script
No response
Which browser(s) exhibit the issue, if applicable?
Firefox
On which platform(s) does your browser exhibit the issue, if applicable?
Linux
Do you have a reproducer?
No response
Any additional information?
I'm sure that this used to work, and that bit of the source (components/ActionInput/index.tsx) has not changed. I have probably updated my Firefox since then. The new, broken version of firefox is 116.0.
Code of conduct
Don't report security issues here
Is there an existing issue?
What happened?
Started a new program, and used the action "Insert a whole number". The input box will accept any garbage (e.g. "abc"), and does not complain that it is not a number. (Unlike the "Insert a character", which validates that there is only one character added.)
What should have happened?
There should be something preventing me from submitting a nonsense string where a number is expected.
Which component(s) or aspect(s) of the project are the source of the issue?
one or more React components
Developers, please provide the output of the bug report script
No response
Which browser(s) exhibit the issue, if applicable?
Firefox
On which platform(s) does your browser exhibit the issue, if applicable?
Linux
Do you have a reproducer?
No response
Any additional information?
I'm sure that this used to work, and that bit of the source (
components/ActionInput/index.tsx
) has not changed. I have probably updated my Firefox since then. The new, broken version of firefox is 116.0.Looking at the docs, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Character_classes, I do not see any problem with the regex in the attribute
pattern="[-+]?[0-9]+"
. Indeed, running a roughly-equivalent example in the browser's javascript console:new RegExp("[-+]?[0-9]+").test("-3")
works as expected.Does anyone else see this bug, and on what browsers? Could this possibly be a Firefox bug?
The text was updated successfully, but these errors were encountered: