We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486919c commit f99e90dCopy full SHA for f99e90d
src/interview-classics/is-palindrome/is-palindrome-method.js
@@ -1,5 +1,5 @@
1
// Characters to remove from string in order to normalize it
2
-const charsToRemove = /[.,:;?!\s]/g
+const charsToRemove = /[-.,:;?!'"\s()]/g
3
4
/**
5
* Checks if a string is a palindrome. Uses srtring and array methods.
src/interview-classics/is-palindrome/is-palindrome-while.js
-const charsToIgnore = /[.,:;?!\s]/
+const charsToIgnore = /[-.,:;?!'"\s()]/
* Checks if a string is a palindrome. Uses a while loop.
0 commit comments