summaryrefslogtreecommitdiffstats
path: root/scripts/export-data.js
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-07-30 12:25:40 +0200
committerMathias Bynens <mathias@qiwi.be>2013-07-30 12:25:40 +0200
commitcd55cd97dd5c522e70a2ea8e2d5fbca6674431e5 (patch)
tree52d7c57aed5c005d0ea8cf81a86db4127145756d /scripts/export-data.js
parent751056cf39fb333eafd4b2e2e9b3177e12793102 (diff)
downloadhe-cd55cd97dd5c522e70a2ea8e2d5fbca6674431e5.zip
he-cd55cd97dd5c522e70a2ea8e2d5fbca6674431e5.tar.gz
he-cd55cd97dd5c522e70a2ea8e2d5fbca6674431e5.tar.bz2
Avoid compiling `regexDecode` at runtime
Diffstat (limited to 'scripts/export-data.js')
-rw-r--r--scripts/export-data.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/export-data.js b/scripts/export-data.js
index f7d17e7..7f5f111 100644
--- a/scripts/export-data.js
+++ b/scripts/export-data.js
@@ -27,8 +27,11 @@ module.exports = {
'decodeOverrides': readJSON('decode-map-overrides'),
'decodeMap': readJSON('decode-map'),
'decodeMapLegacy': readJSON('decode-map-legacy'),
- 'legacyReferences': readJSON('decode-legacy-named-references').join('|'),
'astralSymbols': regenerate.fromCodePointRange(0x010000, 0x10FFFF),
'invalidCodePoints': '[' + readJSON('invalid-code-points').join(',') + ']',
+ 'regexDecimalEscapeSource': '&#([0-9]+)(;?)',
+ 'regexHexadecimalEscapeSource': '&#[xX]([a-fA-F0-9]+)(;?)',
+ 'regexNamedReferenceSource': '&([0-9a-zA-Z]+);',
+ 'regexLegacyReferenceSource': '&(' + readJSON('decode-legacy-named-references').join('|') + ')([=a-zA-Z0-9])?',
'version': JSON.parse(fs.readFileSync('package.json', 'utf-8')).version
};