@farjs/blessed
Advanced tools
+16
-1
@@ -117,2 +117,5 @@ /** | ||
| : str; | ||
| var charCode = typeof str !== 'number' | ||
| ? str.charCodeAt(i || 0) | ||
| : str; | ||
@@ -167,2 +170,12 @@ // nul | ||
| // check for high/low surrogate | ||
| if ( // check if it’s the start of a surrogate pair | ||
| charCode >= 0xD800 && charCode <= 0xDBFF // high surrogate | ||
| ) { | ||
| return 2; | ||
| } | ||
| if (charCode >= 0xDC00 && charCode <= 0xDFFF) { // low surrogate | ||
| return 0; | ||
| } | ||
| if ((0x1100 <= point && point <= 0x115F) | ||
@@ -596,3 +609,5 @@ || (0x11A3 <= point && point <= 0x11A7) | ||
| // 0x20000 - 0x2fffd: | ||
| + '[\\ud840-\\ud87f][\\udc00-\\udffd]' | ||
| // + '[\\ud840-\\ud87f][\\udc00-\\udffd]' | ||
| // treat all surrogate pairs as wide chars (2 cells) | ||
| + '[\\ud800-\\udbff][\\udc00-\\udfff]' | ||
| + '|' | ||
@@ -599,0 +614,0 @@ // 0x30000 - 0x3fffd: |
+1
-1
@@ -11,3 +11,3 @@ { | ||
| ], | ||
| "version": "0.2.6", | ||
| "version": "0.2.7", | ||
| "license": "MIT", | ||
@@ -14,0 +14,0 @@ "main": "./lib/blessed.js", |
1373091
0.03%55633
0.03%