On 01/04/2011 10:33 PM, Joey Hess wrote:
Package: twidge
Version: 1.0.6
Severity: normal

Wikipedia urls often have "(foo)" in them, and twidge stops the url at
the first paren.

So http://en.wikipedia.org/wiki/Monsters_(2010_film) =>
        http://is.gd/k89YQ(2010_film) -- which does not work

Good point, thanks.  Will make a new upload with it in a few.

The diff is just:

--- a/Commands/Update.hs
+++ b/Commands/Update.hs
@@ -145,7 +145,7 @@ shortenUrls cp status =
                                     then tiny else match)
                              ++ rest
     where (before, match, after) = status =~ pat
- pat = "(http|https|ftp)\\://[a-zA-Z0-9\\-\\.]+(:[a-zA-Z0-9]*)?/?([-a-zA-Z0-9:\\._\\?\\,\\'/\\\\\\+&%\\$#\\ + pat = "(http|https|ftp)\\://[a-zA-Z0-9\\-\\.]+(:[a-zA-Z0-9]*)?/?([-a-zA-Z0-9:()\\._\\?\\,\\'/\\\\\\+&%\\$#

 #ifdef USE_BITLY
 chooseShortener cp = do


Ugh, that wrapped.  Anyway it's adding () to pat.

-- John



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to