Skip to content

Conversation

@dgertych-monterail
Copy link

I'm getting Invalid regular expression error I think the / should be escaped.
Instead of |./? should be |.\/?

// current version
op = nickname.replace(/[\s!@#$%^&*()_+=\[{\]};:<>|./?\,\\'""-]/g, '_');
// should be
op = nickname.replace(/[\s!@#$%^&*()_+=\[{\]};:<>|.\/?\,\\'""-]/g, '_');

fehguy added a commit that referenced this pull request May 21, 2014
[fix] Invalid regular expression
@fehguy fehguy merged commit 4bef758 into swagger-api:master May 21, 2014
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.

3 participants