Skip to content

Regex anchor in literal value #44

Description

@jonasbb

Triggers when a string literal contains ^ or $ but is used with a non-regex operator (eq, in, ==). Suggests using the matches operator instead.
https://github.com/doctena-org/octorules-cloudflare/blob/ac57450/docs/lint/stage2-per-rule.md#cf522--regex-anchor-in-literal-value

Also check for (?i) or similar in the beginning

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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