Skip to content

Instantly share code, notes, and snippets.

@amadeus

amadeus/regex.js Secret

Created August 14, 2013 00:30
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 amadeus/82d0288a9b8b2e3ff2a9 to your computer and use it in GitHub Desktop.
Save amadeus/82d0288a9b8b2e3ff2a9 to your computer and use it in GitHub Desktop.
var regex = /word/;
var func = function(a, b, c){
b = 2/3;
b = 2 /3;
return a/b/c;
};
var func = function(a, b, c){
return /b/i;
};
var func = function(a, b, c){
switch (a) {
case /word/i:
true;
break;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment