diff options
Diffstat (limited to 'metadata/xml-schema')
-rw-r--r-- | metadata/xml-schema/metadata.xsd | 2 | ||||
-rw-r--r-- | metadata/xml-schema/projects.xsd | 2 | ||||
-rw-r--r-- | metadata/xml-schema/repositories.xsd | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/metadata/xml-schema/metadata.xsd b/metadata/xml-schema/metadata.xsd index 0ead09ee8342..8bc6a4eff855 100644 --- a/metadata/xml-schema/metadata.xsd +++ b/metadata/xml-schema/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/metadata/xml-schema/projects.xsd b/metadata/xml-schema/projects.xsd index 770bd6769c6c..beaaf4e83fb2 100644 --- a/metadata/xml-schema/projects.xsd +++ b/metadata/xml-schema/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/metadata/xml-schema/repositories.xsd b/metadata/xml-schema/repositories.xsd index ef6792e2c96d..32a55acc7f92 100644 --- a/metadata/xml-schema/repositories.xsd +++ b/metadata/xml-schema/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> |