You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2021/06/15 11:46:10 UTC

[apisix] branch master updated: refactor: avoid repeating the host regex pattern (#4424)

This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new b9e14c8  refactor: avoid repeating the host regex pattern (#4424)
b9e14c8 is described below

commit b9e14c84a906356b168452fe807f139705d9cf1f
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Tue Jun 15 19:44:21 2021 +0800

    refactor: avoid repeating the host regex pattern (#4424)
---
 apisix/schema_def.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apisix/schema_def.lua b/apisix/schema_def.lua
index 9f8aaa2..cd860c6 100644
--- a/apisix/schema_def.lua
+++ b/apisix/schema_def.lua
@@ -645,13 +645,13 @@ _M.ssl = {
         key = private_key_schema,
         sni = {
             type = "string",
-            pattern = [[^\*?[0-9a-zA-Z-.]+$]],
+            pattern = host_def_pat,
         },
         snis = {
             type = "array",
             items = {
                 type = "string",
-                pattern = [[^\*?[0-9a-zA-Z-.]+$]],
+                pattern = host_def_pat,
             },
             minItems = 1,
         },