Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
allows dot in the first part of email address
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Mar 29, 2009
1 parent 073db27 commit 1ab4aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parser/grammar.pg
Expand Up @@ -393,7 +393,7 @@ token AutoLinkUrl {
}

token AutoLinkEmail {
'<' ( <[\-A..Za..z0..9+_]>+ '@' [ <!Newline> <!_Gt> . ]+ ) '>'
'<' ( <[\-.A..Za..z0..9_]>+ '@' [ <!Newline> <!_Gt> . ]+ ) '>'
{*}
}

Expand Down
4 changes: 2 additions & 2 deletions t/30-autolink.t
Expand Up @@ -28,10 +28,10 @@ OUT

language_output_is( 'markdown', <<'CODE', <<'OUT', 'autolink email' );
<somebbob@example.com>
<someb.bob@example.com>
CODE
<p><a href="ma&#x69;&#x6C;&#x74;&#111;:&#x73;o&#x6D;&#101;&#x62;&#98;&#111;&#98;&#64;&#101;&#120;&#x61;&#109;&#x70;&#108;&#101;.&#x63;&#x6F;&#109;">&#x73;o&#x6D;&#101;&#x62;&#98;&#111;&#98;&#64;&#101;&#120;&#x61;&#109;&#x70;&#108;&#101;.&#x63;&#x6F;&#109;</a></p>
<p><a href="ma&#x69;&#x6C;&#x74;&#111;:&#x73;o&#x6D;&#101;&#x62;&#46;&#98;&#111;&#98;&#64;&#101;&#x78;&#97;&#x6D;&#112;&#108;e&#x2E;&#x63;&#111;&#x6D;">&#x73;o&#x6D;&#101;&#x62;&#46;&#98;&#111;&#98;&#64;&#101;&#x78;&#97;&#x6D;&#112;&#108;e&#x2E;&#x63;&#111;&#x6D;</a></p>
OUT


Expand Down

0 comments on commit 1ab4aca

Please sign in to comment.