Created
November 9, 2014 18:07
-
-
Save leggetter/015c1d3c82e58b0d2dbc to your computer and use it in GitHub Desktop.
Pusher Valid Channel Name Regexp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pusherChannelRegexp = /[\w_\-\=@,\.;]+/; | |
var result = pusherChannelRegexp.test( 'foo-bar_1234@=,.;' ); | |
console.log( result ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment