瀏覽代碼

fix wildcard domains regex

Théo Sallou 4 年之前
父節點
當前提交
56c4f8a106
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      frontend/js/app/nginx/certificates/form.js
  2. 1 1
      frontend/js/app/nginx/proxy/form.js

+ 1 - 1
frontend/js/app/nginx/certificates/form.js

@@ -251,7 +251,7 @@ module.exports = Mn.View.extend({
                     text:  input
                 };
             },
-            createFilter: /^(?:[^.]+\.?)+[^.]$/
+            createFilter: /^(?:\*\.)?(?:[^.*]+\.?)+[^.]$/
         });
         this.ui.dns_challenge_content.hide();
         this.ui.credentials_file_content.hide(); 

+ 1 - 1
frontend/js/app/nginx/proxy/form.js

@@ -278,7 +278,7 @@ module.exports = Mn.View.extend({
                     text:  input
                 };
             },
-            createFilter: /^(?:\.)?(?:[^.*]+\.?)+[^.]$/
+            createFilter: /^(?:\*\.)?(?:[^.*]+\.?)+[^.]$/
         });
 
         // Access Lists