We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is this RegEx:
ganja.js/ganja.js
Line 1606 in 5aca551
Broken down between | with example match for illustration:
|
'123.123E-123'.match(/^\d+[.]{0,1}\d*[E][+-]{0,1}\d*/g); // ✔️ '.123E-123' .match(/^\.\d+[E][+-]{0,1}\d*/g ); // ✔️ '0x123' .match(/^0x\d+/g ); // ✔️ '0xABC' .match(/^0x\d+/g ); // ❌ '123.123' .match(/^\d+[.]{0,1}\d*/g ); // ✔️ '.123' .match(/^\.\d+/g ); // ✔️
The result is a token stream containing too many tokens:
I propose this RegEx, adding capital x via [xX], a-f and A-F:
[xX]
a-f
A-F
'0xaAbB'.match(/^0[xX][\da-fA-F]+/g); // ✔️ '0XaAbB'.match(/^0[xX][\da-fA-F]+/g); // ✔️ '0x1234'.match(/^0[xX][\da-fA-F]+/g); // ✔️ '0X1234'.match(/^0[xX][\da-fA-F]+/g); // ✔️
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is this RegEx:
ganja.js/ganja.js
Line 1606 in 5aca551
Broken down between
|
with example match for illustration:The result is a token stream containing too many tokens:
I propose this RegEx, adding capital x via
[xX]
,a-f
andA-F
:The text was updated successfully, but these errors were encountered: