Permalink
Browse files

Add extraction/autlink tests for URL paths ending in + and -. Bump to…

… v1.3.1
  • Loading branch information...
1 parent 6e365f0 commit 96c2f93c17e303a9cc09f852be92c8284c034f5d Matt Sanford committed Jan 6, 2011
Showing with 25 additions and 3 deletions.
  1. +17 −1 README
  2. +4 −2 autolink.yml
  3. +4 −0 extract.yml
View
18 README
@@ -37,4 +37,20 @@ If you are creating a new twitter-text library in a different programming langua
* Add your new tests and send a pull request.
* You can open an issue on github.com at https://github.com/twitter/twitter-text-conformance/issues
- * Please be sure to provide example input and output as well as a brief description of the problem.
+ * Please be sure to provide example input and output as well as a brief description of the problem.
+
+== Changelog
+
+ * v1.3.1 - 2010-12-03 - [ Git tag v1.3.1 ]
+ * [DOC] Updated README with Changelog section
+ * [FIX] Autolink URLs with paths ending in + and -
+ * [FIX] Extract URLs with paths ending in + and -
+
+ * v1.3.0 - 2010-12-03 - [ Git tag v1.3.0 ]
+ * [NOTE] First tagged version (sorry)
+ * [DOC] Updated README file with guidelines for use and format information
+ * [FIX] Do not autolink URLs without protocols
+ * [FIX] Do not extract URLs without protocols
+
+ * v1.0.0 - 2010-01-21 - [ Git tag v1.0.0 (retroactively) ]
+ * Initial version
View
@@ -396,7 +396,7 @@ tests:
text: "Is www.foo-bar.com a valid URL?"
expected: "Is www.foo-bar.com a valid URL?"
- - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
+ - description: "Autolink URL should autolink a domain with a valid dash and a protocol"
text: "Is http://www.foo-bar.com a valid URL?"
expected: "Is <a href=\"http://www.foo-bar.com\">http://www.foo-bar.com</a> a valid URL?"
@@ -412,7 +412,9 @@ 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;\"/"
-
+ - description: "Autolink URL should autolink a URL with a - or + at the end of the path"
+ text: "Go to http://example.com/a+ or http://example.com/a-"
+ expected: "Go to <a href=\"http://example.com/a+\">http://example.com/a+</a> or <a href=\"http://example.com/a-\">http://example.com/a-</a>"
all:
- description: "Autolink all does not break on URL with @"
View
@@ -214,6 +214,10 @@ tests:
text: "foo.bar foo.co.jp www.foo.bar www.foo.co.uk wwwww.foo foo.comm foo.somecom foo.govedu"
expected: []
+ - description: "Extract URLs with a - or + at the end of the path"
+ text: "Go to http://example.com/a+ or http://example.com/a-"
+ expected: ["http://example.com/a+", "http://example.com/a-"]
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"

0 comments on commit 96c2f93

Please sign in to comment.