Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

12
node_modules/string-length/index.js generated vendored
View File

@@ -1,5 +1,13 @@
'use strict';
const stripAnsi = require('strip-ansi');
const astralRegex = require('astral-regex');
const charRegex = require('char-regex');
module.exports = input => stripAnsi(input).replace(astralRegex(), ' ').length;
const stringLength = string => {
if (string === '') {
return 0;
}
return stripAnsi(string).match(charRegex()).length;
};
module.exports = stringLength;