DEV Community

loading...

Discussion on: Regex: Fix duplicate slashes without affecting protocol

Collapse
inhuofficial profile image
InHuOfficial

simple but effective, do you not need it to be

url = url.replaceAll to work in JS though?