clearStyle method

String clearStyle()

Removes all Ansi modifiers and returns the resulting string.

Implementation

String clearStyle() {
  return isEmpty ? this : replaceAll(matchAnsi, '');
}