solidjs-community / solidjs-community/solid-primitives

[bug] input-mask does not treat my regex as I would expect

Open
#261 3 comments 0 reactions 1 assignee View on GitHub

@atk is already working on this.

Since Jul 5, 2026.

help wanted
Dominant language
TypeScript
Stars
1.6k
Forks
162
Avg merge
19h 40m
Merged PRs (30d)
8

Description

Here is my codesandbox where I tried some experiments.

I just wanted to see if I can make the input accept any number between 0 and 255 and block the user's input whenever they're typing something that would result in an invalid value.

As you can see in the codesandbox, I've tried 3 different ways and they all fail to behave as desired in their own unique ways.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.