Skip to content

Instantly share code, notes, and snippets.

@AydinHassan
Created July 7, 2014 20:54
Show Gist options
  • Save AydinHassan/4625189cb671503f6463 to your computer and use it in GitHub Desktop.
Save AydinHassan/4625189cb671503f6463 to your computer and use it in GitHub Desktop.
//yours
function isNested(content, regex) {
var match = regex.exec(content);
if (match) {
return /%C(.+?):(.+?)%CR/g.exec(match[2]) ? true : false;
}
}
//mine
function isNested(content, regex) {
var match = regex.exec(content);
if (match) {
return regex.exec(match[2]) ? true : false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment