Skip to content

Are regexes good enough to validate literals? #407

Closed
@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

    LDML46LDML46 Release (Tech Preview - October 2024)functionsIssue pertains to the default function set

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions