first commit
This commit is contained in:
8
build/node_modules/string-length/index.js
generated
vendored
Normal file
8
build/node_modules/string-length/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
var stripAnsi = require('strip-ansi');
|
||||
|
||||
module.exports = function (str) {
|
||||
var reAstral = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
||||
|
||||
return stripAnsi(str).replace(reAstral, ' ').length;
|
||||
};
|
||||
Reference in New Issue
Block a user