var input = 'abcd %{public}s efg';
{"ScriptPreparationCode":"var input = \u0027abcd %{public}s efg\u0027;\r\nvar templateStrs = [\u0027%{private}s\u0027, \u0027%{private}d\u0027, \u0027%{public}s\u0027, \u0027%{public}d\u0027];\r\nvar regPattern = /%\\{(public|private)\\}[sd]/;","TestCases":[{"Name":"String.includes","Code":"let hasPlaceholder = false;\r\nfor (let i = 0; i \u003C 4; i\u002B\u002B) {\r\n if (input.includes(templateStrs[i])) {\r\n hasPlaceholder = true;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"Regex","Code":"let hasPlaceholder = false;\r\nhasPlaceholder = regPattern.test(input);","IsDeferred":false}]}