From 56c4f8a106dfa6c96d09028f67f2152d1ca752c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Sallou?= Date: Thu, 17 Jun 2021 11:51:51 +0200 Subject: [PATCH] fix wildcard domains regex --- frontend/js/app/nginx/certificates/form.js | 2 +- frontend/js/app/nginx/proxy/form.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/app/nginx/certificates/form.js b/frontend/js/app/nginx/certificates/form.js index d5d3acd3..65a54b69 100644 --- a/frontend/js/app/nginx/certificates/form.js +++ b/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(); diff --git a/frontend/js/app/nginx/proxy/form.js b/frontend/js/app/nginx/proxy/form.js index 8802b958..1dfb5c18 100644 --- a/frontend/js/app/nginx/proxy/form.js +++ b/frontend/js/app/nginx/proxy/form.js @@ -278,7 +278,7 @@ module.exports = Mn.View.extend({ text: input }; }, - createFilter: /^(?:\.)?(?:[^.*]+\.?)+[^.]$/ + createFilter: /^(?:\*\.)?(?:[^.*]+\.?)+[^.]$/ }); // Access Lists