|
|
@ -1203,7 +1203,12 @@ export class CommandAdapt { |
|
|
|
public getSearchNavigateInfo(): null | INavigateInfo { |
|
|
|
return this.searchManager.getSearchNavigateInfo() |
|
|
|
} |
|
|
|
|
|
|
|
public checkPayload(payload: string): boolean { |
|
|
|
if (!payload || payload.includes(ZERO)) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
public replace(payload: string, aiArticle?: boolean) { |
|
|
|
// console.log('替换', payload)
|
|
|
|
|
|
|
@ -1214,7 +1219,8 @@ export class CommandAdapt { |
|
|
|
} else { |
|
|
|
// console.log('zero:', new RegExp(`${ZERO}`, 'g').test(payload))
|
|
|
|
|
|
|
|
if (!payload || new RegExp(`${ZERO}`, 'g').test(payload)) return |
|
|
|
//if (!payload || new RegExp(`${ZERO}`, 'g').test(payload)) return
|
|
|
|
if(this.checkPayload(payload))return |
|
|
|
} |
|
|
|
// if (!payload || (isZero && aiArticle)) return
|
|
|
|
const matchList = this.draw.getSearch().getSearchMatchList() |
|
|
|