Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

fix bug 1002043 - Allow consecutive underscores in slugs #2497

Merged
merged 1 commit into from Jun 23, 2014

Conversation

darkwing
Copy link
Contributor


// Don't allow "_____" mess
if(!allowMultipleUnderscores) {
result = result.replace(/\_+/g, '_');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _ character doesn't appear to have any special meaning in JavaScript regular expressions, so the \ can be omitted.

@openjck
Copy link
Contributor

openjck commented Jun 19, 2014

Otherwise looks great. Excited to get this in!

@darkwing
Copy link
Contributor Author

Updated!

openjck added a commit that referenced this pull request Jun 23, 2014
fix bug 1002043 - Allow consecutive underscores in slugs
@openjck openjck merged commit cfeda45 into mdn:master Jun 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants