mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
修改日志结束符判定
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const LOG_END_SYMBOL = '\n ';
|
||||
@@ -1,3 +1,5 @@
|
||||
import { LOG_END_SYMBOL } from "./const";
|
||||
|
||||
export default function browserType() {
|
||||
// 权重:系统 + 系统版本 > 平台 > 内核 + 载体 + 内核版本 + 载体版本 > 外壳 + 外壳版本
|
||||
const ua = navigator.userAgent.toLowerCase();
|
||||
@@ -273,3 +275,8 @@ export function depthFirstSearch<
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
export function logEnded(log: string): boolean {
|
||||
const endTips = [LOG_END_SYMBOL, '执行结束'];
|
||||
return endTips.some(x => !log.includes(x));
|
||||
}
|
||||
Reference in New Issue
Block a user