DEV Community

Discussion on: Regex: Fix duplicate slashes without affecting protocol

Collapse
 
grahamthedev profile image
GrahamTheDev

simple but effective, do you not need it to be

url = url.replaceAll to work in JS though?