has-unicode
Advanced tools
Comparing version 2.0.0 to 2.0.1
11
index.js
@@ -13,10 +13,5 @@ "use strict" | ||
var isUTF8 = /[.]UTF-8/ | ||
if (isUTF8.test(process.env.LC_ALL) | ||
|| process.env.LC_CTYPE == 'UTF-8' | ||
|| isUTF8.test(process.env.LANG)) { | ||
return true | ||
} | ||
return false | ||
var isUTF8 = /UTF-?8$/i | ||
var ctype = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG | ||
return isUTF8.test(ctype) | ||
} |
{ | ||
"name": "has-unicode", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Try to guess if your terminal supports unicode", | ||
@@ -17,2 +17,5 @@ "main": "index.js", | ||
], | ||
"files": [ | ||
"index.js" | ||
], | ||
"author": "Rebecca Turner <me@re-becca.org>", | ||
@@ -19,0 +22,0 @@ "license": "ISC", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
3436
4
14