jpmcgrath/shortener — pull request #3 by pwim (2012-04-24 08:00:26+00:00)
Title: Invalid characters

We are automatically shortening URLs, and sometimes this isn't done
quite properly, and invalid trailing characters get added. For example,
we might have

http://example.org/abcdef-

where abcdef is http://example.org/abcdef the valid shortened url. By
only looking at the valid token characters, we can work around this
issue.