setup-php/node_modules/string-length/index.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

6 lines
180 B
JavaScript

'use strict';
const stripAnsi = require('strip-ansi');
const astralRegex = require('astral-regex');
module.exports = input => stripAnsi(input).replace(astralRegex(), ' ').length;