Skip to content

Are regexes good enough to validate literals? #407

@stasm

Description

@stasm

A follow-up to #368.

The current draft of the registry uses named regex patterns to allow defining rules for validating literal arguments and option values.

<pattern id="positiveInteger" regex="[0-9]+"/>

And then:

<option name="minimumIntegerDigits" pattern="positiveInteger"/>
  • Are regexes enough for this task?
  • Should patterns be defined inline rather than referenced by id?

Metadata

Metadata

Assignees

No one assigned

    Labels

    functionsIssue pertains to the default function set

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions