src/components/Regular/index.vue
@@ -255,8 +255,12 @@ } regex = regex.slice(0, -1); regexno = regexno.slice(0, -1); if (regexno) { hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$"; } else { hostregexno = ""; } hostregex = "(?=.*(?:" + `${regex}` + ")).*$"; hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$"; this.TargetoptionList[index].targetregex = hostregex; this.TargetoptionList[index].targetregex2 = hostregexno; console.log(hostregex, "确定字匹配");