@spare/lange
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -1,3 +0,2 @@ | ||
import { ANSI_G, ASTRAL_G } from '@spare/regex-charset'; | ||
export { clearAnsi, clearAstral, hasAnsi, hasAstral } from '@spare/charset'; | ||
import { ANSI_G, ASTRAL_G, ANSI, ASTRAL } from '@spare/regex-charset'; | ||
@@ -13,2 +12,10 @@ /** | ||
export { Lange, lange }; | ||
const clearAnsi = tx => tx.replace(ANSI_G, ''); | ||
const clearAstral = tx => tx.replace(ASTRAL_G, '_'); | ||
const hasAnsi = tx => ANSI.test(tx); | ||
const hasAstral = tx => ASTRAL.test(tx); | ||
export { Lange, clearAnsi, clearAstral, hasAnsi, hasAstral, lange }; |
{ | ||
"name": "@spare/lange", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "Get string length s.t. correcting astral codes and skipping ansi codes", | ||
@@ -22,3 +22,3 @@ "type": "module", | ||
"dependencies": { | ||
"@spare/regex-charset": "^0.13.1" | ||
"@spare/regex-charset": "^0.13.2" | ||
}, | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"homepage": "https://github.com/gadge/spare#readme", | ||
"gitHead": "e71ebde264ddded38617c95ee924b407aaf95fff" | ||
"gitHead": "1edc5966f384bef387867de6603990bdd6eb1721" | ||
} |
Sorry, the diff of this file is not supported yet
4966
33
Updated@spare/regex-charset@^0.13.2