Skip to content

Match updated spec for /\w/iu and /\W/iu  #8

@mathiasbynens

Description

@mathiasbynens

Now that tc39/ecma262#525 has landed, \u017F (LATIN SMALL LETTER LONG S) and \u212A (KELVIN SIGN) are word characters for /iu patterns.

Expected behavior:

/\w/iu.test('\u017F') // true
/\w/iu.test('\u212A') // true
/\W/iu.test('\u017F') // false
/\W/iu.test('\u212A') // false
/\W/iu.test('s')      // false
/\W/iu.test('S')      // false
/\W/iu.test('K')      // false
/\W/iu.test('k')      // false

Actual behavior: currently, they all result in true.

See also

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