Permalink
Browse files

japanese edge case

  • Loading branch information...
1 parent 687d335 commit e810e4ec84f60a157d74e09cf2e48dbdc59bc3de @bcherry bcherry committed Nov 1, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 autolink.yml
View
6 autolink.yml
@@ -196,6 +196,10 @@ tests:
text: "いまなにしてるhttp://example.comいまなにしてる"
expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
+ - description: "Autolink URL without protocol in Japanese text"
+ text: "ABCあああDEF.com"
+ expected: "ABCあああ<a href=\"http://DEF.com\">DEF.com</a>"
+
- description: "Autolink url surrounded by parentheses does not capture them"
text: "text (http://example.com)"
expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
@@ -404,6 +408,8 @@ tests:
text: "example: http://twitter.com/otm_m@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
expected: "example: <a href=\"http://twitter.com/otm_m\">http://twitter.com/otm_m</a>@\"onmousedown=\"alert('foo')\" style=background-color:yellow;color:yellow;\"/"
+
+
all:
- description: "Autolink all does not break on URL with @"
text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."

0 comments on commit e810e4e

Please sign in to comment.