Project

General

Profile

Bug #1833

Updated by Gerhard Gonter (uni) over 11 years ago


The code for the email address validation seems to be incorrect.

@nbgg: work/URN/metaresolver/pidef/src/main/xsd/pidef.xsd

<pre><code class="xml">

<xsd:simpleType name="emailType">
<xsd:annotation>
<xsd:documentation xml:lang="en" source="Modified version of BSD Licenced code from www.codesynthesis.com">
Definition of a valid electronic mail address.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:pattern value="([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])"/>
</xsd:restriction>
</xsd:simpleType>

</code></pre>

Back