Merge pull request #219 from tunsmart/solutions
Improve the readability of the RegExp
This commit is contained in:
commit
db998d7279
|
@ -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("")
|
||||
|
|
Loading…
Reference in New Issue