'use strict';

// src/platform/token-optimizer/strip-ansi.ts
var ANSI_REGEX = new RegExp(
  String.raw`\u001B\[[0-9;]*[a-zA-Z]|\u001B\].*?(?:\u0007|\u001B\\)`,
  "g"
);
var stripAnsi = (text) => {
  return text.replace(ANSI_REGEX, "");
};

exports.stripAnsi = stripAnsi;
