Project

General

Profile

Bug #1833

Note #2445: metaresolver-code svn structure

pidef.xsd email address validation wrong

Added by Gerhard Gonter (uni) over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
2013-04-03
Due date:
% Done:

0%


Description

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

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


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

History

#1 Updated by Gerhard Gonter (uni) over 11 years ago

  • Description updated (diff)
  • Parent task set to #2445

Also available in: Atom PDF