commit:     d9fe77eac622d43629d9eb0aa79d9fa93c909cba
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 22 12:16:07 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jan 22 12:28:37 2022 +0000
URL:        https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=d9fe77ea

metadata.xsd: Support FTP URLs

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 <AT> 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>
 

Reply via email to