diff options
author | 2022-01-22 13:16:07 +0100 | |
---|---|---|
committer | 2022-05-24 07:23:20 +0300 | |
commit | feaf91f4d26abefc54b49cb41fa39f8f12ec7255 (patch) | |
tree | 3155c2ddd563d238f19e4b5ab11bb69042544354 /data | |
parent | ebuild.repository: fix inheriting license groups (diff) | |
download | pkgcore-feaf91f4d26abefc54b49cb41fa39f8f12ec7255.tar.gz pkgcore-feaf91f4d26abefc54b49cb41fa39f8f12ec7255.tar.bz2 pkgcore-feaf91f4d26abefc54b49cb41fa39f8f12ec7255.zip |
data/xml-schema/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).
Taken from proj/xml-schema.git commit d9fe77e.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'data')
-rw-r--r-- | data/xml-schema/metadata.xsd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/xml-schema/metadata.xsd b/data/xml-schema/metadata.xsd index d2e3d4ff1..1a8605148 100644 --- a/data/xml-schema/metadata.xsd +++ b/data/xml-schema/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> |