Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves issue #78 #98

Closed
wants to merge 4 commits into from
Closed

Resolves issue #78 #98

wants to merge 4 commits into from

Conversation

ixti
Copy link

@ixti ixti commented Aug 11, 2011

Improves the way strings are got sluggized in order to resolve #78
This is re-open of pull request #96 due to some strange problems with pull request range update.

@ixti
Copy link
Author

ixti commented Aug 11, 2011

I believe patch is obvious enough, but still I will comment it:

  • trailing and leading dashes are removed, e.g.: -foo-bar- become foo-bar
  • & become -and-, e.g. Rock&Roll become rock-and-roll
  • /[\s.,!?_+=]/+ become -, e.g. Foo!Bar? become foo-bar
  • other chars except alphanumeric and dashes are removed, e.g. 1st << day >> become 1st-day
  • dashes are got squeeze, e.g. abc--^^--def become abc-def

@ixti ixti closed this Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Routing breaks if there is a dot in the name of an article
1 participant