From 2e961a67f116b096d1b8b15278e7fbd821ef5721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Ribeiro?= Date: Fri, 13 Nov 2015 18:53:36 -0300 Subject: [PATCH] add Solution for Bonfire:Check for Palindromes --- seed/challenges/basic-bonfires.json | 1 + 1 file changed, 1 insertion(+) diff --git a/seed/challenges/basic-bonfires.json b/seed/challenges/basic-bonfires.json index c1327a5c84..97f2577a34 100644 --- a/seed/challenges/basic-bonfires.json +++ b/seed/challenges/basic-bonfires.json @@ -169,6 +169,7 @@ "String.toLowerCase()" ], "solutions": [ + "function palindrome(str) {\n var string = str.toLowerCase().split(/[^A-Za-z0-9]/gi).join('');\n var aux = string.split('');\n if (aux.join('') === aux.reverse().join('')){\n return true;\n }\n\n return false;\n}" ], "type": "bonfire", "challengeType": 5,