🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@farjs/blessed

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@farjs/blessed - npm Package Compare versions

Comparing version
0.2.6
to
0.2.7
+16
-1
lib/unicode.js

@@ -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",