Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a test case to not extract .bz2 file name as URL. #27

Merged
merged 1 commit into from

1 participant

@keitaf
Collaborator

Currently a file name ending with '.bz2' is partially extracted as URL because 'bz' is a valid ccTLD. E.g., 'test.tar.bz' in "test.tar.bz2" is extracted as URL.

I'm preparing a branch on twitter-text-rb/js/java to not extract such URL from .bz2 file name. This adds a test case to verify the fix.

@keitaf keitaf merged commit e3c3e45 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 3, 2012
  1. @keitaf
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 extract.yml
View
4 extract.yml
@@ -442,6 +442,10 @@ tests:
text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
expected: []
+ - description: "DO NOT extract .bz2 file name as URL"
+ text: "long.test.tar.bz2 test.tar.bz2 tar.bz2"
+ expected: []
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"
Something went wrong with that request. Please try again.