github-pages-deploy-action/node_modules/string-length/index.js
2020-03-31 08:42:07 -04:00

10 lines
305 B
JavaScript

'use strict';
const stripAnsi = require('strip-ansi');
const astralRegex = require('astral-regex');
const stringLength = string => stripAnsi(string).replace(astralRegex(), ' ').length;
module.exports = stringLength;
// TODO: Remove this for the next major release
module.exports.default = stringLength;