Skip to content

RegExp character classes are incorrect #949

Description

@ChALkeR

/\w/.test('\u212A')
/\w/u.test('\u212A')
/\w/i.test('\u212A')

true under nova, false under v8 (and spec)

Note that /\w/iu.test('\u212A') is true under v8 and per spec.

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

    regexpWe use WTF-8 but RegExp engines expect either UTF-8 or UTF-16

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions