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

Rename decimal to digits. Add new decimal validation action #823

Merged

Conversation

andrew-d-jackson
Copy link
Sponsor Contributor

See issue #822

This PR:

  • Renames the existing decimal action to digits. digits only passes strings containing the numbers 0-9.
  • Creates a new decimal action. decimal passes non-integers and allows number signs.
  • Updates the docs to reflect the above.

- Rename the existing `decimal` action to `digits`. `digits` only passes strings containing the numbers 0-9
- Create a new `decimal` action that passes non-integers and numbers with number signs.
- Update the docs to reflect the above.
@fabian-hiller fabian-hiller self-assigned this Sep 10, 2024
@fabian-hiller fabian-hiller added the enhancement New feature or request label Sep 10, 2024
Copy link

pkg-pr-new bot commented Sep 10, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/valibot@823

commit: 6d1a895

@fabian-hiller
Copy link
Owner

Great work! Thank you!

@fabian-hiller fabian-hiller merged commit 943fe0c into fabian-hiller:main Sep 10, 2024
8 checks passed
@fabian-hiller
Copy link
Owner

v0.42.0 is available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants