2020-02-11 22:54:08 +01:00
|
|
|
// Copyright (C) 2020 Alexey Shvayka. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: prod-ClassEscapes
|
|
|
|
description: >
|
|
|
|
\b escape inside CharacterClass is valid in Unicode patterns (unlike \B).
|
|
|
|
info: |
|
|
|
|
ClassEscape[U] ::
|
|
|
|
b
|
|
|
|
|
|
|
|
Static Semantics: CharacterValue
|
|
|
|
|
|
|
|
ClassEscape :: b
|
|
|
|
|
|
|
|
1. Return the code point value of U+0008 (BACKSPACE).
|
|
|
|
---*/
|
|
|
|
|
2020-02-24 18:44:43 +01:00
|
|
|
assert(/[\b]/u.test('\u0008'));
|
2020-02-11 22:54:08 +01:00
|
|
|
assert(/[\b-A]/u.test('A'));
|