Skip to content

ES6 regular expressions unicode mode: case insensitivity case folding inconsistency #7708

Closed
@xqin

Description

@xqin
  • Version: v4.1.0
  • Platform: Windows 7 x64
/(\.[\u4e00-\u9fa5A-Z])+/i.test('a.c');  //true

/(\.[A-Z\u4e00-\u9fa5])+/i.test('a.c');   //true
  • Version: v6.3.0
  • Platform: Windows 7 x64
/(\.[\u4e00-\u9fa5A-Z])+/i.test('a.c');  //false

/(\.[A-Z\u4e00-\u9fa5])+/i.test('a.c');   //true

why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions