emoji-aware
Advanced tools
Comparing version 1.0.0 to 1.1.0
'use strict'; | ||
exports.consoleFormat = require('./lib/console-format.js'); | ||
exports.isEmoji = require('./lib/is-emoji.js'); | ||
exports.split = require('./parsers/unicode-and-emoji.js').parse; |
{ | ||
"name": "emoji-aware", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Emoji-aware unicode string utilities", | ||
@@ -5,0 +5,0 @@ "main": "emoji-aware.js", |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var Parsimmon = require('parsimmon'); | ||
var flattenDeep = require('lodash.flattenDeep'); | ||
var flattenDeep = require('lodash.flattendeep'); | ||
@@ -8,0 +8,0 @@ var SurrogatePair = Parsimmon.regex(/[\uD800-\uDBFF][\uDC00-\uDFFF]/); |
@@ -41,1 +41,25 @@ 'use strict'; | ||
}); | ||
test('parseOne fail empty string', t => { | ||
t.plan(1); | ||
var result = unicode.parseOne(''); | ||
t.false(result); | ||
}); | ||
test('parse empty string', t => { | ||
t.plan(1); | ||
var result = unicode.parse(''); | ||
t.same(result, []); | ||
}); | ||
test('parse fail broken string', t => { | ||
t.plan(1); | ||
var result = unicode.parse('\uDC00\uDC01'); | ||
t.false(result); | ||
}); |
Sorry, the diff of this file is not supported yet
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
13242
19
288