This commit is contained in:
Christopher Jeffrey 2015-04-16 17:38:53 -07:00
parent 7b31f45468
commit 347ef0c010
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ exports.charWidth = function(str, i) {
// search table of non-spacing characters
// is ucs combining or C0/C1 control character
if (exports.isNonSpacing(point)) {
if (exports.combining[point]) {
return 0;
}
@ -567,7 +567,7 @@ exports.combiningRegex = exports.combiningTable.reduce(function(out, row) {
hexify(high.charCodeAt(1))
];
range = '[\\u' + low[0] + '-' + '\\u' + high[0] + ']'
+ '[\\u' + low[1] + '-' + '\\u' + high[1] + ']';
+ '[\\u' + low[1] + '-' + '\\u' + high[1] + ']';
if (!~out.indexOf('|')) out += ']';
out += '|' + range;
} else {