minor.
This commit is contained in:
parent
7b31f45468
commit
347ef0c010
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue