Skip to content

Commit db998d7

Browse files
authored
Merge pull request TheOdinProject#219 from tunsmart/solutions
Improve the readability of the RegExp
2 parents 7df108c + 4b13066 commit db998d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

palindromes/palindromes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const palindromes = function(string) {
2-
processedString = string.toLowerCase().replace(/[^A-Za-z]/g, "");
2+
processedString = string.toLowerCase().replace(/[^a-z]/g, "");
33
return (
44
processedString
55
.split("")

0 commit comments

Comments
 (0)