norman/friendly_id — Issue #226: Support multiple forms of dashes
Author: joevandyk
Created: 2012-02-05 19:32:28+00:00
State: open

The default sequence separator is '--'. If someone posts a link like http://www.domain.com/products/a-name--2 into Outlook, Outlook will often convert "--" to "–" (an em-dash). Then friendly_id won't recognize "–" as a sequence separator and the link won't work.

It would be nice to have support for additional sequence separators.

I made this change for friendly_id 3.3.0: https://github.com/mitjok/friendly_id/commit/6b023adb887831ead296c7d8fdeb0e9b0f10b486 -- it seemed to work ok in that version. But upgrading to Rails 3.2 means I have to upgrade to friendly_id 4, so I need to revisit this again.

Do you think something like this has a place in the official friendly_id?