mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
parse-ansi 类库 手动屏蔽错误
This commit is contained in:
parent
dbaad77b12
commit
5dd2fd2390
@ -17,6 +17,7 @@ const ansiparse: any = function (str: any) {
|
||||
matchingData = null,
|
||||
matchingText: string = '',
|
||||
ansiState: any[] = [],
|
||||
// eslint-disable-next-line prefer-const
|
||||
result: any[] = [],
|
||||
state: any = {},
|
||||
eraseChar
|
||||
@ -35,6 +36,7 @@ const ansiparse: any = function (str: any) {
|
||||
//
|
||||
// Erases a char from the output
|
||||
//
|
||||
// eslint-disable-next-line prefer-const
|
||||
eraseChar = function () {
|
||||
let index, text
|
||||
if (matchingText.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user