Skip to content

Allow gridHeight regex to match a starting decimal #2

@teddybradford

Description

@teddybradford

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})$/;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions