Entfernen Sie den Doppelstrich von URL JavaScript

abc.replace(/([^:]\/)\/+/g, "$1");
Mysterious Moth