Skip to content

[Bug] Possible wrong regEx validation in var identRe inside index.js file #165

Closed
@pedpess

Description

@pedpess

Hi 👋🏻 ,

I have an issue with regEx validation that's done with var identRe = (^-?[_a-z][_a-z0-9-]*$) inside of the index.js file that cause my app to crash during start-up. This peculiar case only happens with my fontFamily that's named as OctoberH+L-Black with the + plus sign being the main issue here as this regEx within the lib code doesn't take that into consideration.

I patched a fix locally that handles that regEx validation with the plus sign as (^-?[_a-zA-Z][A-Z_a-z0-9+-]*$), which doesn't crash the app anymore and the font family works as expected.

You can try that yourself using regEx101 and see that my patch validates the font family correctly.

If this is the real fix, please let me know and I would be happy to open a small PR 🙂

Cheers,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions