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

fix(id-class-value): fix ineficient regex #1414

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 19, 2024

  1. fix(id-class-value): fix ineficient regex

    Replacing the capturing group quantifier ( ... )* with a non-capturing group quantifier (?: ... )*
    to reduce the risk of exponential backtracking.
    
    htmlhint#1147
    bebehr committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    5163d31 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. fix(id-class-value): fix inefficient regex

    The positive lookahead assertion `(?= ...)` is used to ensure that the check occurs after the first
    lowercase letter and all subsequent characters have been verified to resolve the issue of reference
    backtracking
    
    htmlhint#1147
    bebehr committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ea7ea2d View commit details
    Browse the repository at this point in the history