Created
July 7, 2014 20:54
-
-
Save AydinHassan/4625189cb671503f6463 to your computer and use it in GitHub Desktop.
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
//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