All files / packages/colors/src constants.ts

0% Statements 0/1
100% Branches 1/1
100% Functions 1/1
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8               
// See: https://github.com/nodejs/node/blob/main/lib/internal/util/inspect.js#L262~L273
export const ansiRegStr = '[\\u001B\\u009B][[\\]()#;?]*'
  + '(?:(?:(?:(?:;[-\\w/#&.:=?%@~]+)+'
  + '|[a-zA-Z\\d]+(?:;[-\\w/#&.:=?%@~]*)*)?'
  + '(?:\\u0007|\\u001B\\u005C|\\u009C))'
  + '|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?'
  + '[\\dA-PR-TZcf-nq-uy=><~]))'