Skip to content

Update RegExp tests for \w, \W, \b & \B #705

Open
@msaboff

Description

@msaboff

ECMA 262 issue 525 Unify handling of RegExp CharacterClassEscapes \w and \W and Word Asserts \b and \B is now closed.

Please update and/or add tests for the changed behavior of \w, \W, \b and B. The new expected behavior includes:

    /\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
    /\b/iu.test('\u017F') // true
    /\b/iu.test('\u212A') // true
    /\b/iu.test('s')      // true
    /\b/iu.test('S')      // true
    /\B/iu.test('\u017F') // false
    /\B/iu.test('\u212A') // false
    /\B/iu.test('s')      // false
    /\B/iu.test('S')      // false
    /\B/iu.test('K')      // false
    /\B/iu.test('k')      // false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions