Permalink
Browse files

Fix email regex

  • Loading branch information...
1 parent b7cb6ee commit 63271bfe2adc9c5e9cd8d985ab381dc8596ef5aa @thomasc thomasc committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/markdown.erl
View
@@ -1024,7 +1024,7 @@ get_email_addie(String) ->
{match, [{N, _} | _T]} ->
{Possible, [$> | T]} = lists:split(N, String),
EMail_regex = "[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+"
- ++ "(?:\.[a-za-Z0-9!#$%&'*+/=?^_`{|}~-]+)*"
+ ++ "(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*"
++ "@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+"
++ "(?:[a-zA-Z]{2}|com|org|net|gov|mil"
++ "|biz|info|mobi|name|aero|jobs|museum)",

0 comments on commit 63271bf

Please sign in to comment.