Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

merged 1 commit into from

1 participant


Currently a file name ending with '.bz2' is partially extracted as URL because 'bz' is a valid ccTLD. E.g., '' 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
4 extract.yml
@@ -442,6 +442,10 @@ tests:
text: "$ $ $ $ $ $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: []
- description: "Extract a URL"
text: "text"
Something went wrong with that request. Please try again.