Comparing version 11.5.0 to 11.6.0
@@ -22,2 +22,18 @@ (function() { | ||
/* thx to https://github.com/chalk/ansi-regex/blob/main/index.js */ | ||
this._ansi_pattern = /[\u001B\u009B][[\]()\#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/\#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/\#&.:=?%@~_]*)*)?\u0007)|(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))/g; | ||
// @_ansi_pattern = do => | ||
// ``` | ||
// function ansiRegex({onlyFirst = false} = {}) { | ||
// const pattern = [ | ||
// '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', | ||
// '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))' | ||
// ].join('|'); | ||
// return new RegExp(pattern, onlyFirst ? undefined : 'g'); | ||
// } | ||
// ``` | ||
// return ansiRegex() | ||
//----------------------------------------------------------------------------------------------------------- | ||
@@ -123,4 +139,8 @@ this.truth = function(x) { | ||
this.strip_ansi = function(text) { | ||
return text.replace(this._ansi_pattern, ''); | ||
}; | ||
}).call(this); | ||
//# sourceMappingURL=trm.js.map |
{ | ||
"name": "guy", | ||
"version": "11.5.0", | ||
"version": "11.6.0", | ||
"description": "npm dependencies checker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -485,2 +485,5 @@ | ||
* writer `GUY.trm.pen()` returns string representation as used in `GUY.trm.log()` &c | ||
* `GUY.trm.strip_ansi: ( text ) ->` uses RegEx from | ||
(chalk)[https://raw.githubusercontent.com/chalk/ansi-regex/main/index.js] to strip ANSI codes from a given | ||
string | ||
@@ -643,2 +646,3 @@ #### `GUY.sets` | ||
## Is Done | ||
@@ -645,0 +649,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
282414
2796
669
45