Skip to content

Instantly share code, notes, and snippets.

@leggetter
Created November 9, 2014 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leggetter/015c1d3c82e58b0d2dbc to your computer and use it in GitHub Desktop.
Save leggetter/015c1d3c82e58b0d2dbc to your computer and use it in GitHub Desktop.
Pusher Valid Channel Name Regexp
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