Skip to content

Commit

Permalink
Fix missing Noncharacter_Code_Point code points
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Apr 13, 2017
1 parent aedeb42 commit 2388ae5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ for dir in $(find ./unicode-* -type d -maxdepth 0 | sort -r); do
cd "${dir}";
echo "Taking care of ${dir}";
git add -A;
git commit -m 'Release v0.7.2';
git tag v0.7.2;
git commit -m 'Release v0.7.3';
git tag v0.7.3;
git push;
git push --tags;
npm publish;
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ const generateData = function(version) {
'type': 'Names'
}));
// Sort array values.
Object.keys(dirMap).forEach(function(property) {
for (const property of Object.keys(dirMap)) {
if (Array.isArray(dirMap[property])) {
dirMap[property] = dirMap[property].sort();
}
});
}
fs.writeFileSync(
path.resolve(__dirname, 'output', 'unicode-' + version, 'README.md'),
compileReadMe({
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
},
"dependencies": {
"cp": "^0.2.0",
"jsesc": "^2.2.0",
"lodash.template": "^4.2.4",
"jsesc": "^2.5.0",
"lodash.template": "^4.4.0",
"mkdirp": "^0.5.1",
"regenerate": "^1.3.1",
"request": "^2.72.0",
"unicode-loose-match": "^2.1.1",
"unicode-property-aliases": "^1.1.0",
"unicode-property-value-aliases": "^1.1.0",
"when": "^3.7.7"
"regenerate": "^1.3.2",
"request": "^2.81.0",
"unicode-loose-match": "^2.2.0",
"unicode-property-aliases": "^1.1.1",
"unicode-property-value-aliases": "^1.2.2",
"when": "^3.7.8"
},
"devDependencies": {
"istanbul": "^0.4.3"
"istanbul": "^0.4.5"
}
}
12 changes: 6 additions & 6 deletions scripts/parse-blocks-scripts-properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ const parseBlocksScriptsProperties = function(type, version) {
return;
}
const lines = source.split('\n');
lines.forEach(function(line) {
for (const line of lines) {
if (
/^#/.test(line) ||
!(
/^(?:blocks|bidi-mirroring)$/.test(type)
/^(?:blocks|bidi-mirroring|properties)$/.test(type)
? /;\x20/.test(line)
: /\x20;\x20/.test(line)
)
) {
return;
continue;
}
const data = line.trim().split(';');
const charRange = data[0].replace('..', '-').trim();
Expand All @@ -33,14 +33,14 @@ const parseBlocksScriptsProperties = function(type, version) {
if (item == 'FNC') {
// Old Unicode versions up to v4.0.0 use the `FNC` alias instead of
// `FC_NFKC` (for `FC_NFKC_Closure`). This is not a binary property.
return;
continue;
} else {
const canonical = propertyAliases.get(item);
if (canonical) {
if (/FC_NFKC_Closure|NFKC_Casefold|(?:NFC|NFD|NFKC|NFKD)_Quick_Check/.test(canonical)) {
// These are not binary properties, or their default value (in the
// file) is not `True`.
return;
continue;
}
item = canonical;
}
Expand All @@ -63,7 +63,7 @@ const parseBlocksScriptsProperties = function(type, version) {
} else {
utils.append(map, item, parseInt(charRange, 16));
}
});
}
return map;
};

Expand Down
2 changes: 1 addition & 1 deletion templates/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unicode-<%= version %>",
"version": "0.7.2",
"version": "0.7.3",
"description": "JavaScript-compatible Unicode data. Arrays of code points, arrays of symbols, and regular expressions for Unicode v<%= version %>’s categories, scripts, blocks, bidi, and other properties.",
"homepage": "https://github.com/mathiasbynens/unicode-<%= version %>",
"main": "index.js",
Expand Down

0 comments on commit 2388ae5

Please sign in to comment.