mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f)
This commit is contained in:
9
node_modules/string-length/index.js
generated
vendored
Normal file
9
node_modules/string-length/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'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;
|
||||
Reference in New Issue
Block a user