{"ScriptPreparationCode":"var matchDirective = /webapp-v-([a-z-]\u002B)(?::([a-zA-Z_.-]\u002B))?/,\r\n fullDirective = /webapp-v-([a-z-]\u002B)(?::([a-zA-Z_-]\u002B)(?:\\.([a-zA-Z_-]\u002B))?)?/, \r\n attrName = \u0022webapp-v-bind:class.ifdefined\u0022;","TestCases":[{"Name":"Regex","Code":"var directivematch = matchDirective.exec(attrName),\r\n\tdirectivename \t= directivematch[1],\r\n\tdirectivopts\t= directivematch[2],\r\n\tpos\t\t\t\t= directivopts.indexOf(\u0022.\u0022),\r\n attrname\t\t= directivopts.substring(0, pos),\r\n buildIn\t\t\t= directivopts.substring(pos\u002B1);","IsDeferred":false},{"Name":"Substring","Code":"var directivematch = matchDirective.exec(attrName),\r\n pos\t\t\t\t= attrName.indexOf(\u0022:\u0022),\r\n\tdirectivename \t= attrName.substring(0, pos), \r\n\tdirectivopts\t= attrName.substring(pos\u002B1),\r\n\tposbuild\t\t= directivopts.indexOf(\u0022.\u0022),\r\n attrname\t\t= directivopts.substring(0, posbuild),\r\n buildIn\t\t\t= directivopts.substring(posbuild\u002B1);","IsDeferred":false},{"Name":"Full Regex","Code":"var directivematch = fullDirective.exec(attrName),\r\n\tdirectivename \t= directivematch[1],\r\n attrname\t\t= directivematch[2],\r\n buildIn\t\t\t= directivematch[3];","IsDeferred":false}]}