Add tests for RegExp set notation

Set notation and extended character class functionality is part of the RegExp `v` flag proposal: https://github.com/tc39/proposal-regexp-set-notation

Issue: https://github.com/tc39/test262/issues/3496, https://github.com/tc39/proposal-regexp-set-notation/issues/52
This commit is contained in:
Mathias Bynens 2022-05-06 13:09:08 +02:00 committed by Philip Chimento
parent b8d4c12698
commit d361217eb7
108 changed files with 4488 additions and 0 deletions

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\d]+$/v,
expression: "[[0-9]--\d]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--[0-9]]+$/v,
expression: "[[0-9]--[0-9]]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--_]+$/v,
expression: "[[0-9]--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\d]+$/v,
expression: "[\d--\d]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--[0-9]]+$/v,
expression: "[\d--[0-9]]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--_]+$/v,
expression: "[\d--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\d]+$/v,
expression: "[\d&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&[0-9]]+$/v,
expression: "[\d&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&_]+$/v,
expression: "[\d&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\d]+$/v,
expression: "[\d\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d[0-9]]+$/v,
expression: "[\d[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\p{ASCII_Hex_Digit}]+$/v,
expression: "[\d\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d_]+$/v,
expression: "[\d_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,50 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\d\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\d\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\d\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\d]+$/v,
expression: "[[0-9]&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&[0-9]]+$/v,
expression: "[[0-9]&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&_]+$/v,
expression: "[[0-9]&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\d]+$/v,
expression: "[[0-9]\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9][0-9]]+$/v,
expression: "[[0-9][0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\p{ASCII_Hex_Digit}]+$/v,
expression: "[[0-9]\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]_]+$/v,
expression: "[[0-9]_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,50 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[[0-9]\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,40 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[[0-9]\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[[0-9]\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\d]+$/v,
expression: "[_--\d]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--[0-9]]+$/v,
expression: "[_--[0-9]]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\p{ASCII_Hex_Digit}]+$/v,
expression: "[_--\p{ASCII_Hex_Digit}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--_]+$/v,
expression: "[_--_]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\d]+$/v,
expression: "[_&&\d]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&[0-9]]+$/v,
expression: "[_&&[0-9]]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[_&&\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&_]+$/v,
expression: "[_&&_]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,31 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"_",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\d]",
matchStrings: [
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}--[0-9]]",
matchStrings: [
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--_]+$/v,
expression: "[\p{ASCII_Hex_Digit}--_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"1",
"3",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&_]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,53 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"1",
"3",
"5",
"6",
"6\uFE0F\u20E3",
"7",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\d]+$/v,
expression: "[\p{ASCII_Hex_Digit}\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}[0-9]]+$/v,
expression: "[\p{ASCII_Hex_Digit}[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}_]+$/v,
expression: "[\p{ASCII_Hex_Digit}_]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"_",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,61 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,51 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{ASCII_Hex_Digit}\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{ASCII_Hex_Digit}\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\d]+$/v,
expression: "[_\d]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_[0-9]]+$/v,
expression: "[_[0-9]]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,52 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\p{ASCII_Hex_Digit}]+$/v,
expression: "[_\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"A",
"B",
"C",
"D",
"E",
"F",
"_",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"9\uFE0F\u20E3",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,32 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[__]+$/v,
expression: "[__]",
matchStrings: [
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[_\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,35 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[_\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[_\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"0",
"2",
"4",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\d]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--[0-9]]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\p{ASCII_Hex_Digit}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--_]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\p{Emoji_Keycap_Sequence}]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\d]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&[0-9]]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\p{ASCII_Hex_Digit}]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&_]",
matchStrings: [],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}&&\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}&&\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,50 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\d]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\d]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,50 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}[0-9]]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}[0-9]]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,61 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\p{ASCII_Hex_Digit}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\p{ASCII_Hex_Digit}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5",
"5\uFE0F\u20E3",
"6",
"6\uFE0F\u20E3",
"7",
"7\uFE0F\u20E3",
"8",
"8\uFE0F\u20E3",
"9",
"9\uFE0F\u20E3",
"A",
"B",
"C",
"D",
"E",
"F",
"a",
"b",
"c",
"d",
"e",
"f"
],
nonMatchStrings: [
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,42 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}_]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}_]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3",
"_"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,41 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,44 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\p{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\p{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [
"#\uFE0F\u20E3",
"*\uFE0F\u20E3",
"0",
"0\uFE0F\u20E3",
"1\uFE0F\u20E3",
"2",
"2\uFE0F\u20E3",
"3\uFE0F\u20E3",
"4",
"4\uFE0F\u20E3",
"5\uFE0F\u20E3",
"6\uFE0F\u20E3",
"7\uFE0F\u20E3",
"8\uFE0F\u20E3",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--\d]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--\d]",
matchStrings: [
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--[0-9]]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--[0-9]]",
matchStrings: [
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--\p{ASCII_Hex_Digit}]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--\p{ASCII_Hex_Digit}]",
matchStrings: [
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--_]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--_]",
matchStrings: [
"0",
"2",
"4",
"9\uFE0F\u20E3"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,35 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--\p{Emoji_Keycap_Sequence}]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--\p{Emoji_Keycap_Sequence}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}--\q{0|2|4|9\uFE0F\u20E3}]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}--\q{0|2|4|9\uFE0F\u20E3}]",
matchStrings: [],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,35 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}&&\d]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}&&\d]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,35 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}&&[0-9]]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}&&[0-9]]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,35 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-unicode-property-escapes, regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}&&\p{ASCII_Hex_Digit}]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}&&\p{ASCII_Hex_Digit}]",
matchStrings: [
"0",
"2",
"4"
],
nonMatchStrings: [
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

View File

@ -0,0 +1,34 @@
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Extended character classes enabled by the RegExp `v` flag support
properties of strings, string literals, and set operations
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0
esid: sec-patterns
features: [regexp-v-flag]
includes: [regExpUtils.js]
---*/
testExtendedCharacterClass({
regExp: /^[\q{0|2|4|9\uFE0F\u20E3}&&_]+$/v,
expression: "[\q{0|2|4|9\uFE0F\u20E3}&&_]",
matchStrings: [],
nonMatchStrings: [
"0",
"2",
"4",
"6\uFE0F\u20E3",
"7",
"9\uFE0F\u20E3",
"9\uFE0F\u20E3",
"C",
"\u2603",
"\u{1D306}",
"\u{1F1E7}\u{1F1EA}"
],
});

Some files were not shown because too many files have changed in this diff Show More