parse-ansi 类库 手动屏蔽错误

This commit is contained in:
a20070322 2024-03-04 14:01:33 +08:00
parent dbaad77b12
commit 5dd2fd2390

View File

@ -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) {