diff --git a/palindromes/palindromes.js b/palindromes/palindromes.js index 19b6aa8..0023222 100644 --- a/palindromes/palindromes.js +++ b/palindromes/palindromes.js @@ -1,5 +1,5 @@ const palindromes = function(string) { - processedString = string.toLowerCase().replace(/[^A-Za-z]/g, ""); + processedString = string.toLowerCase().replace(/[^a-z]/g, ""); return ( processedString .split("")