Skip to content

RegExp character classes are incorrect #949

@ChALkeR

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.

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