Palindromes bug
Closed this issue · 3 comments
avajscript commented
xandora commented
.replaceAll()
is not a function in Node v14, which is the current LTS version and what we use for all our JavaScript code within TOP.
xandora commented
After some research, it looks like your code should work if you replace .replaceAll()
with just regular ol' .replace()
, since you're already using a regex, which is one of the requirements for have .replace()
search for more than the first occurrence of what you want to replace.
avajscript commented
Smart man! Thanks for pointing that out wow!