Skip to content

Rule to write regular expressions compatible with the linear engine #872

@ericcornelissen

Description

@ericcornelissen

Description

This is more of a suggestion than a well-defined rule proposal. I figured someone else might already have the knowledge to say whether this is a great or a terrible idea.

My basic idea is to have a rule that forces you to write regular expressions that are compatible with V8's linear regular expression engine. I haven't looked at it too carefully but it is my understanding that this would just amount to disallow certain features of JavaScript regular expressions because they're not supported by that engine.

For some additional context, I'm trying to figure out how I, as a library author, can write regular expression that are compatible with the linear engine so that application developers actually have a chance of enabling the option (I started a discussion in nodejs/node#51659 (comment)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions