From e0a1390ddfcf9405a621fafbf9846a38493132ab Mon Sep 17 00:00:00 2001 From: New Future Date: Wed, 7 Apr 2021 20:11:33 +0800 Subject: [PATCH] fix #173 domain pattern to match start with * (#245) --- schema/v2.8.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/v2.8.json b/schema/v2.8.json index dd80c6e..39c0cac 100644 --- a/schema/v2.8.json +++ b/schema/v2.8.json @@ -62,7 +62,7 @@ "$id": "/properties/ipv4/items", "title": "ipv4 domain for DDNS", "type": "string", - "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}$", + "pattern": "^(?:\\*\\.)?(?:[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}$", "examples": [ "newfuture.cc", "ipv4.example.newfuture.cc" @@ -79,7 +79,7 @@ "$id": "/properties/ipv6/items", "title": "The ipv6 domain for DDNS", "type": "string", - "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", + "pattern": "^(?:\\*\\.)?(?:[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,18}$", "examples": [ "newfuture.cc", "ipv6.example.newfuture.cc"