From 59272d99113d2d11b1873d60653e52b49f14d757 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 26 一月 2024 11:53:19 +0800 Subject: [PATCH] 指标完成 --- src/components/Regular/index.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 58e60ca..fb1f240 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -203,6 +203,7 @@ let regex = ""; let regexno = ""; let hostregex = ""; + let hostregexno = ""; for (let i = 0; i < this.dynamiccruxs.length; i++) { regex += `${this.dynamiccruxs[i]}|`; @@ -213,8 +214,10 @@ regex = regex.slice(0, -1); regexno = regexno.slice(0, -1); - hostregex = "^(?!." + `${regexno}` + ")(.(" + `${regex}` + ")+.*)$"; - console.log(hostregex); + hostregex = "(?=.*(?:" + `${regex}` + ")).*$"; + hostregexno = "(?=.*(?:" + `${regexno}` + ")).*$"; + console.log(hostregex, "纭畾瀛楀尮閰�"); + console.log(hostregexno, "鍚﹀畾瀛楀尮閰�"); }, // 鎺у埗鏂囦欢 handleChange(file, fileList) { -- Gitblit v1.9.3