GithubHelp home page GithubHelp logo

Comments (6)

jasoniangreen avatar jasoniangreen commented on September 27, 2024

Hi @RedHatter, you are right, it's not very helpful in this situation. Thanks for sharing the mitigating approach. I will try and raise it with the author sometime but there are other priorities at the moment, though I am curious why it wasn't just wrapped at the time. There might be some good reason why not.

I'll keep an eye on this issue too to see how requested a change in this area is.

from ajv.

jasoniangreen avatar jasoniangreen commented on September 27, 2024

I'll try and find time to fit in a fix on this but have other priorities so I'm also happy to review a PR by someone else.

from ajv.

jasoniangreen avatar jasoniangreen commented on September 27, 2024

Sorry @RedHatter but I want to check something. You said that the existing error doesn't show you the failing pattern but I get an error message like this:

SyntaxError: Invalid regular expression: /^[0-9]{2-4}/: Incomplete quantifier

from ajv.

RedHatter avatar RedHatter commented on September 27, 2024

The exact error message I got was

Uncaught SyntaxError: incomplete quantifier in regular expression

Note that this was in firefox. I didn't check the error message in any other browsers at the time.

from ajv.

jasoniangreen avatar jasoniangreen commented on September 27, 2024

Ah I see. It seems in node (at least version 18) you get a more useful message that includes the expression. I'll still keep it in mind because we could include the json schema path of the expression.

from ajv.

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.