* [gentoo-dev] [PATCH] metadata.xsd: Support FTP URLs
@ 2022-01-22 17:59 99% Ulrich Müller
0 siblings, 0 replies; 1+ results
From: Ulrich Müller @ 2022-01-22 17:59 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
Base urlType on xs:anyURI. Slightly simplify the mailto syntax (a dot
in the domain part is actually not required).
Closes: https://bugs.gentoo.org/830211
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
metadata.xsd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.xsd b/metadata.xsd
index d2e3d4f..1a86051 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -553,9 +553,9 @@
</xs:complexType>
<xs:simpleType name='urlType'>
- <xs:restriction base='xs:token'>
+ <xs:restriction base='xs:anyURI'>
<!-- TODO: something better? -->
- <xs:pattern value="(mailto:[^@]+@[^.\s]+\.\S+|https?://\S+)"/>
+ <xs:pattern value="(mailto:.+@.+|(ftp|https?)://\S+)"/>
</xs:restriction>
</xs:simpleType>
--
2.34.1
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-01-22 17:59 99% [gentoo-dev] [PATCH] metadata.xsd: Support FTP URLs Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox