Skip to content

Json schema - version RegEx #30

@FabianMauz

Description

@FabianMauz

Hi EnzymeML dev team

When i tried to validate a json file against the schema in my software i struggled a little bit with the version regex in the schema.
It seems like there are too many"in the regex:

original regex: "\"^(\\d+)\\.\\d+$\""

my regex:"^(\\d+)\\.\\d+$"
I am not an expert in regexes (or exes in general ;) ) but it looks to me that the original regex will always fail because it looks for an " before the start of the word.

Best wishes

Fabian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions