Permalink
Browse files

don't allow @ as a preceding character for URLs

  • Loading branch information...
1 parent 73eff47 commit 335add9f9a9ab251dbd6caae844939c4d4e190d6 @bcherry bcherry committed Oct 21, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 autolink.yml
View
@@ -284,6 +284,14 @@ tests:
text: "text =http://example.com"
expected: "text =http://example.com"
+ - description: "DO NOT Autolink url preceded by @"
+ text: "@http://example.com"
+ expected: "@http://example.com"
+
+ - description: "DO NOT Autolink domain in email address"
+ text: "foo@bar.com"
+ expected: "foo@bar.com"
+
- description: "Autolink url embedded in link tag"
text: "<link rel='true'>http://example.com</link>"
expected: "<link rel='true'><a href=\"http://example.com\">http://example.com</a></link>"

0 comments on commit 335add9

Please sign in to comment.