Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Actually allow single letter domains, thanks BonsaiDen
Browse files Browse the repository at this point in the history
  • Loading branch information
hoverbird committed Apr 16, 2010
1 parent c114c13 commit 00710e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extract.yml
Expand Up @@ -147,14 +147,14 @@ tests:
text: "text http://chilp.it/?77e8fd"
expected: ["http://chilp.it/?77e8fd"]

- description: "Extract valid URL: http://x.com/oneletterdomain"
text: "text http://x.com/oneletterdomain"
expected: ["http://x.com/oneletterdomain"]

- description: "DO NOT extract invalid URL: http://-begin_dash_2314352345_dfasd.foo-cow_4352.com"
text: "text http://doman-dash_2314352345_dfasd.foo-cow_4352.com"
expected: []

- description: "DO NOT extract invalid URL: http://x.com/oneletterdomain"
text: "text http://x.com/oneletterdomain"
expected: []

- description: "DO NOT extract invalid URL: http://no-tld"
text: "text http://no-tld"
expected: []
Expand Down

0 comments on commit 00710e6

Please sign in to comment.