Skip to content

CodeQL "Overly permissive regular expression range" false positive #10394

@Lisenish

Description

@Lisenish

Description of the false positive

I've got the following false positive Suspicious character range that is equivalent to [. for JS codebase for the following RegExps which I think completely fine (I've checked the blocks):

  • /^([ァ-ヾ]|[ァ-ン゙゚])+$/;
  • /[0-90-9]/

Unicode blocks to verify the ranges:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions