Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH] metadata.xsd: Support FTP URLs
Date: Sat, 22 Jan 2022 17:59:41
Message-Id: 20220122175907.26094-1-ulm@gentoo.org
1 Base urlType on xs:anyURI. Slightly simplify the mailto syntax (a dot
2 in the domain part is actually not required).
3
4 Closes: https://bugs.gentoo.org/830211
5 Signed-off-by: Ulrich Müller <ulm@g.o>
6 ---
7 metadata.xsd | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/metadata.xsd b/metadata.xsd
11 index d2e3d4f..1a86051 100644
12 --- a/metadata.xsd
13 +++ b/metadata.xsd
14 @@ -553,9 +553,9 @@
15 </xs:complexType>
16
17 <xs:simpleType name='urlType'>
18 - <xs:restriction base='xs:token'>
19 + <xs:restriction base='xs:anyURI'>
20 <!-- TODO: something better? -->
21 - <xs:pattern value="(mailto:[^@]+@[^.\s]+\.\S+|https?://\S+)"/>
22 + <xs:pattern value="(mailto:.+@.+|(ftp|https?)://\S+)"/>
23 </xs:restriction>
24 </xs:simpleType>
25
26 --
27 2.34.1