Improve the readability of the RegExp
This commit is contained in:
parent
7df108c5de
commit
4b13066369
|
@ -1,5 +1,5 @@
|
||||||
const palindromes = function(string) {
|
const palindromes = function(string) {
|
||||||
processedString = string.toLowerCase().replace(/[^A-Za-z]/g, "");
|
processedString = string.toLowerCase().replace(/[^a-z]/g, "");
|
||||||
return (
|
return (
|
||||||
processedString
|
processedString
|
||||||
.split("")
|
.split("")
|
||||||
|
|
Loading…
Reference in New Issue