{"ScriptPreparationCode":null,"TestCases":[{"Name":"For","Code":"function getInputVariables(text) {\r\n const arrayInputs = [];\r\n if (text \u0026\u0026 0 \u003C text.length) {\r\n const arrayText = text.split(\u0022\u0022);\r\n let isInput = false;\r\n let input=\u0022\u0022;\r\n arrayText.forEach(function(letter) {\r\n if (letter!=\u0022%\u0022 || isInput) {\r\n if (letter===\u0022%\u0022 \u0026\u0026 isInput) {\r\n isInput = false;\r\n if (input \u0026\u0026 input.length\u003E0) {\r\n arrayInputs.push(input);\r\n input = \u0022\u0022\r\n }\r\n } else if (isInput) {\r\n input \u002B= letter\r\n }\r\n } else {\r\n isInput = true\r\n }\r\n })\r\n }\r\n return arrayInputs;\r\n }","IsDeferred":false},{"Name":"Regex","Code":"function getInputs(string){\r\n const regex = /%[^%]\u002B%/g;\r\n console.log(String.prototype.match)\r\n const matches = string.match(regex);\r\n if(matches) return matches.map(match =\u003E match.slice(1, -1));\r\n return [];\r\n}","IsDeferred":false}]}