Usuń podwójne cięcie z JavaScript URL

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