Hapus Slash Ganda dari URL JavaScript

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