feat: strip Colors (#469)

This commit is contained in:
CosminPerRam 2024-01-16 01:39:07 +02:00 committed by GitHub
parent 0a3338320e
commit 5ae12dd494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 38 deletions

View file

@ -125,7 +125,7 @@ export default class unreal2 extends Core {
out = out.substring(0, out.length - 1)
}
if (stripColor) {
if (stripColor && this.options.stripColors) {
out = out.replace(/\x1b...|[\x00-\x1a]/gus, '')
}