Skip to content

Allow specifying custom input pattern #84

Description

@mstieranka

Hi, in the application that we currently use this library in, we use it to input codes with the regex pattern of /^[0-9a-zA-Z]{6}$, however, this library only allows enforcing of /^[0-9]+$/, otherwise all characters are allowed.

Would it be possible, or desirable, to allow the user to set their own regexp pattern? I could work on this as a pull request if needed.

Code example as to how I imagine this could look in use:

<code-input pattern="[0-9a-zA-Z]" ...></code-input>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions