mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
feat: strip Colors (#469)
This commit is contained in:
parent
0a3338320e
commit
5ae12dd494
11 changed files with 47 additions and 38 deletions
|
|
@ -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, '')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue