Source code

Revision control

Copy as Markdown

Other Tools

// Copyright 2025 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Beria_Erfe`
info: |
Unicode v17.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
---*/
const matchSymbols = buildString({
loneCodePoints: [],
ranges: [
[0x016EA0, 0x016EB8],
[0x016EBB, 0x016ED3]
]
});
testPropertyEscapes(
/^\p{Script=Beria_Erfe}+$/u,
matchSymbols,
"\\p{Script=Beria_Erfe}"
);
testPropertyEscapes(
/^\p{Script=Berf}+$/u,
matchSymbols,
"\\p{Script=Berf}"
);
testPropertyEscapes(
/^\p{sc=Beria_Erfe}+$/u,
matchSymbols,
"\\p{sc=Beria_Erfe}"
);
testPropertyEscapes(
/^\p{sc=Berf}+$/u,
matchSymbols,
"\\p{sc=Berf}"
);
const nonMatchSymbols = buildString({
loneCodePoints: [],
ranges: [
[0x00DC00, 0x00DFFF],
[0x000000, 0x00DBFF],
[0x00E000, 0x016E9F],
[0x016EB9, 0x016EBA],
[0x016ED4, 0x10FFFF]
]
});
testPropertyEscapes(
/^\P{Script=Beria_Erfe}+$/u,
nonMatchSymbols,
"\\P{Script=Beria_Erfe}"
);
testPropertyEscapes(
/^\P{Script=Berf}+$/u,
nonMatchSymbols,
"\\P{Script=Berf}"
);
testPropertyEscapes(
/^\P{sc=Beria_Erfe}+$/u,
nonMatchSymbols,
"\\P{sc=Beria_Erfe}"
);
testPropertyEscapes(
/^\P{sc=Berf}+$/u,
nonMatchSymbols,
"\\P{sc=Berf}"
);
reportCompare(0, 0);