valibot icon indicating copy to clipboard operation
valibot copied to clipboard

feat: ISBN validation

Open ysknsid25 opened this issue 8 months ago • 5 comments

I am a certified librarian. So I realized that I would like to be able to verify ISBNs when registering books.

The ISBN specifications are here.

ysknsid25 avatar Mar 22 '25 14:03 ysknsid25

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
valibot ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 9:58am

vercel[bot] avatar Mar 22 '25 14:03 vercel[bot]

Great idea! Thank you for creating this PR! I will try to review it next week!

fabian-hiller avatar Mar 23 '25 16:03 fabian-hiller

Open in StackBlitz

npm i https://pkg.pr.new/valibot@1097

commit: 6957e0d

pkg-pr-new[bot] avatar Mar 23 '25 17:03 pkg-pr-new[bot]

Sorry for the delay. I will get back to this PR as soon as possible.

fabian-hiller avatar Apr 01 '25 03:04 fabian-hiller

no problem. take it easy 👍

ysknsid25 avatar Apr 01 '25 03:04 ysknsid25

I fixed copilot's pointing out 👍

ysknsid25 avatar Nov 23 '25 01:11 ysknsid25

@fabian-hiller is attempting to deploy a commit to the Valibot Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 23 '25 21:11 vercel[bot]

I changed the code to allow spaces instead of hyphens. I also refactored the checksum functions. I believe they are mathematically equivalent, but please let me know if you disagree.

fabian-hiller avatar Nov 23 '25 21:11 fabian-hiller

v1.2.0 is available

fabian-hiller avatar Nov 24 '25 23:11 fabian-hiller