commit:     181e46892590b84add173078455c4b8a99259e85
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 18 15:45:01 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 18 15:45:01 2016 +0000
URL:        https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=181e4689

Disallow whitespace in URLs

 metadata.xsd     | 2 +-
 projects.xsd     | 2 +-
 repositories.xsd | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/metadata.xsd b/metadata.xsd
index 0ead09e..8bc6a4e 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -532,7 +532,7 @@
        <xs:simpleType name='urlType'>
                <xs:restriction base='xs:token'>
                        <!-- TODO: something better? -->
-                       <xs:pattern 
value="(mailto:[^@]+@[^.]+\..+|https?://.+)"/>
+                       <xs:pattern 
value="(mailto:[^@]+@[^.\s]+\.\S+|https?://\S+)"/>
                </xs:restriction>
        </xs:simpleType>
 

diff --git a/projects.xsd b/projects.xsd
index 770bd67..beaaf4e 100644
--- a/projects.xsd
+++ b/projects.xsd
@@ -85,7 +85,7 @@
        <xs:simpleType name='urlType'>
                <xs:restriction base='xs:token'>
                        <!-- TODO: something better? -->
-                       <xs:pattern 
value="(mailto:[^@]+@[^.]+\..+|https?://.+)"/>
+                       <xs:pattern value="https?://\S+"/>
                </xs:restriction>
        </xs:simpleType>
 

diff --git a/repositories.xsd b/repositories.xsd
index ef6792e..32a55ac 100644
--- a/repositories.xsd
+++ b/repositories.xsd
@@ -340,7 +340,7 @@
        <xs:simpleType name='urlType'>
                <xs:restriction base='xs:token'>
                        <!-- TODO: something better? -->
-                       <xs:pattern value="[^:]+:.+"/>
+                       <xs:pattern value="[^:\s]+:\S+"/>
                </xs:restriction>
        </xs:simpleType>
 

Reply via email to