Giter Site home page Giter Site logo

RegExp for validation? about cuid HOT 4 CLOSED

paralleldrive avatar paralleldrive commented on July 25, 2024
RegExp for validation?

from cuid.

Comments (4)

hilkeheremans avatar hilkeheremans commented on July 25, 2024 1

Check out https://github.com/smallhelm/is-cuid and https://www.npmjs.com/package/is-cuid

from cuid.

stockholmux avatar stockholmux commented on July 25, 2024

Nice! This should be in the readme for this project - I would have never found this without your help.

from cuid.

rsp avatar rsp commented on July 25, 2024

@stockholmux @hilkeheremans Note that is-cuid returns true for strings like this:

  • c:\autoexec.bat
  • comment=lorem+ipsum&json={"title":"Lorem","message":"Lorem%20ipsum%20dolor%20sit[...]"}

which I personally wouldn't consider a valid cuid.

See: https://runkit.com/rsp/59ba67877e8de600126d4b85

from cuid.

hilkeheremans avatar hilkeheremans commented on July 25, 2024

Yes, we noticed that as well recently. Thanks for mentioning!

from cuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.