8000 Improve the readability of the RegExp · Kishidle/javascript-exercises@4b13066 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b13066

Browse files
committed
Improve the readability of the RegExp
1 parent 7df108c commit 4b13066

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)
0