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

Commit

Permalink
Fix linking in CJK text
Browse files Browse the repository at this point in the history
URLs without a protocol, with a leading hyphen, with a short TLD inside CJK text
should no longer be linked
  • Loading branch information
jakl committed Nov 14, 2014
1 parent be88d01 commit a665c1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extract.yml
Expand Up @@ -444,6 +444,10 @@ tests:
text: "test http://twitter.com/."
expected: ["http://twitter.com/"]

- description: "DO NOT extract URL with leading hyphen inside CJK text"
text: "ル-twpf.jpル"
expected: []

- description: "Extract a URL with '?' in fragment"
text: "http://tn.com.ar/show/00056158/la-estrella-del-certamen-el-turno-de-pamela-anderson?fb_xd_fragment#?=&cb=fe17523f223b7&relation=parent.parent&transport=fragment&type=resize&height=20&ackdata"
expected: ["http://tn.com.ar/show/00056158/la-estrella-del-certamen-el-turno-de-pamela-anderson?fb_xd_fragment#?=&cb=fe17523f223b7&relation=parent.parent&transport=fragment&type=resize&height=20&ackdata"]
Expand Down

0 comments on commit a665c1f

Please sign in to comment.