diff --git a/web/public/js/components/server/http-cond-definitions.js b/web/public/js/components/server/http-cond-definitions.js index 69dd04db..114da667 100644 --- a/web/public/js/components/server/http-cond-definitions.js +++ b/web/public/js/components/server/http-cond-definitions.js @@ -148,6 +148,28 @@ Vue.component("http-cond-url-regexp", { ` }) +// 排除URL正则匹配 +Vue.component("http-cond-url-not-regexp", { + props: ["v-cond"], + data: function () { + let cond = this.vCond + if (cond == null) { + cond = { + isRequest: true, + param: "${requestPath}", + operator: "not regexp", + value: "" + } + } + return { + cond: cond + } + }, + template: `
+ + +
` +}) // 根据MimeType Vue.component("http-cond-mime-type", { diff --git a/web/public/js/conds/official.json b/web/public/js/conds/official.json index ef0857b0..232970ad 100644 --- a/web/public/js/conds/official.json +++ b/web/public/js/conds/official.json @@ -27,6 +27,13 @@ "component": "http-cond-url-regexp", "isRequest": true }, + { + "type": "url-not-regexp", + "name": "排除URL正则匹配", + "description": "使用正则表达式检查URL中的文件路径是否一致,如果一致,则不匹配", + "component": "http-cond-url-not-regexp", + "isRequest": true + }, { "type": "mime-type", "name": "内容MimeType",