2019-03-12 09:47:27 +01:00
|
|
|
// Copyright 2019 Mathias Bynens. All rights reserved.
|
2017-04-13 17:22:49 +02:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
author: Mathias Bynens
|
|
|
|
description: >
|
|
|
|
Unicode property escapes for `Script=Old_Hungarian`
|
|
|
|
info: |
|
|
|
|
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
|
2019-05-22 23:08:14 +02:00
|
|
|
Unicode v12.1.0
|
2017-04-13 17:22:49 +02:00
|
|
|
esid: sec-static-semantics-unicodematchproperty-p
|
|
|
|
features: [regexp-unicode-property-escapes]
|
|
|
|
includes: [regExpUtils.js]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
const matchSymbols = buildString({
|
|
|
|
loneCodePoints: [],
|
|
|
|
ranges: [
|
|
|
|
[0x010C80, 0x010CB2],
|
|
|
|
[0x010CC0, 0x010CF2],
|
|
|
|
[0x010CFA, 0x010CFF]
|
|
|
|
]
|
|
|
|
});
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\p{Script=Old_Hungarian}+$/u,
|
|
|
|
matchSymbols,
|
|
|
|
"\\p{Script=Old_Hungarian}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\p{Script=Hung}+$/u,
|
|
|
|
matchSymbols,
|
|
|
|
"\\p{Script=Hung}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\p{sc=Old_Hungarian}+$/u,
|
|
|
|
matchSymbols,
|
|
|
|
"\\p{sc=Old_Hungarian}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\p{sc=Hung}+$/u,
|
|
|
|
matchSymbols,
|
|
|
|
"\\p{sc=Hung}"
|
|
|
|
);
|
|
|
|
|
|
|
|
const nonMatchSymbols = buildString({
|
|
|
|
loneCodePoints: [],
|
|
|
|
ranges: [
|
|
|
|
[0x00DC00, 0x00DFFF],
|
|
|
|
[0x000000, 0x00DBFF],
|
|
|
|
[0x00E000, 0x010C7F],
|
|
|
|
[0x010CB3, 0x010CBF],
|
|
|
|
[0x010CF3, 0x010CF9],
|
|
|
|
[0x010D00, 0x10FFFF]
|
|
|
|
]
|
|
|
|
});
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\P{Script=Old_Hungarian}+$/u,
|
|
|
|
nonMatchSymbols,
|
|
|
|
"\\P{Script=Old_Hungarian}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\P{Script=Hung}+$/u,
|
|
|
|
nonMatchSymbols,
|
|
|
|
"\\P{Script=Hung}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\P{sc=Old_Hungarian}+$/u,
|
|
|
|
nonMatchSymbols,
|
|
|
|
"\\P{sc=Old_Hungarian}"
|
|
|
|
);
|
|
|
|
testPropertyEscapes(
|
|
|
|
/^\P{sc=Hung}+$/u,
|
|
|
|
nonMatchSymbols,
|
|
|
|
"\\P{sc=Hung}"
|
|
|
|
);
|