sfaxon/slugger — pull request #6 by jordanbyron (2012-02-24 20:51:32+00:00)
Title: Slugs should never end with a substitution character

Currently it is possible for generated slugs to end with a substitution character when `max_length` is set. That results in nasty looking slugs, and eventually urls. This tiny patch ensures any trailing substitution characters are removed.