Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow gridHeight regex to match a starting decimal #2

Open
teddybradford opened this issue Jan 15, 2023 · 0 comments
Open

Allow gridHeight regex to match a starting decimal #2

teddybradford opened this issue Jan 15, 2023 · 0 comments

Comments

@teddybradford
Copy link

Some design system libraries provide units as .75rem rather than 0.75rem. I'd like to be able to use the value directly from a library. It would be great if Plumber supported this.

I haven't thoroughly tested this, but I think something like this would work:

const unitRegExp = /^((?:\d*\.)?\d+)([a-z]{1,4})$/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant