MCPcopy Index your code
hub / github.com/cli-table/cli-table3 / codeRegex

Function codeRegex

src/utils.js:3–5  ·  view source on GitHub ↗
(capture)

Source from the content-addressed store, hash-verified

1const stringWidth = require('string-width');
2
3function codeRegex(capture) {
4 return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
5}
6
7function strlen(str) {
8 let code = codeRegex();

Callers 3

strlenFunction · 0.85
readStateFunction · 0.85
truncateWidthWithAnsiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…