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
Continuing the discussion from this thread:
regex based rules are hard to grasp by their name only. For example,
/^\d+$/
-1
/^[+-]?\d+(?:\.\d+)?$/
I was surprised to find this, because I thought the latter required decimal point(s).
What if the documentation showed:
✅ 3 ❎ -3 ❎ 3.0 // use decimal instead
The text was updated successfully, but these errors were encountered:
Your idea is great. I will come back to this and other similar issues and PRs after V1 is available.
Sorry, something went wrong.
fabian-hiller
No branches or pull requests
Continuing the discussion from this thread:
Problem
regex based rules are hard to grasp by their name only. For example,
/^\d+$/
and does not allow-1
./^[+-]?\d+(?:\.\d+)?$/
and does allow-1
.I was surprised to find this, because I thought the latter required decimal point(s).
Suggestion
What if the documentation showed:
Example
digits
show regex
/^\d+$/
✅ 3
❎ -3
❎ 3.0 // use decimal instead
The text was updated successfully, but these errors were encountered: