2
0
mirror of https://github.com/embarklabs/neo-blessed.git synced 2025-01-12 20:14:26 +00:00

Revert "isSurrogateLast"

This reverts commit e19730578c3dc209a6c7f3b8d8c99dff32eeb0bb.
This commit is contained in:
Christopher Jeffrey 2015-04-26 06:38:06 -07:00
parent e19730578c
commit 34fd68b620
2 changed files with 0 additions and 12 deletions

@ -386,16 +386,6 @@ exports.isSurrogate = function(str, i) {
return point > 0x00ffff;
};
exports.isSurrogateFirst = function(ch) {
var code = ch.charCodeAt(0);
return code >= 0xd800 && code <= 0xdbff;
};
exports.isSurrogateLast = function(ch) {
var code = ch.charCodeAt(0);
return code >= 0xdc00 && code <= 0xdfff;
};
exports.combiningTable = [
[ 0x0300, 0x036F ], [ 0x0483, 0x0486 ], [ 0x0488, 0x0489 ],
[ 0x0591, 0x05BD ], [ 0x05BF, 0x05BF ], [ 0x05C1, 0x05C2 ],

@ -2732,7 +2732,6 @@ main:
if (line[j] === ' '
|| line[j] === '\x03'
|| unicode.isSurrogate(line, j - 1)
//|| unicode.isSurrogateLast(line, j)
|| unicode.combining[line[j]]) {
break;
}
@ -2740,7 +2739,6 @@ main:
if (line[j] === ' '
|| line[j] === '\x03'
|| unicode.isSurrogate(line, j - 1)
//|| unicode.isSurrogateLast(line, j)
|| unicode.combining[line[j]]) {
i = j + 1;
}