Преглед на файлове

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