Skip to content

Move all regex to outer scope #97

@punkpeye

Description

@punkpeye

One issue with the way that this library is implemented is that every regex is being re-initialized every time the function is run.

A simple optimization would be to assign every regex to a variable and move it to the outer scope.

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