3 ms·True enough, the regex was overzealous. This looks better: time = time.replace( /^0*(0:)+/, '24' );by thangalin 2y agoTrue enough, the regex was overzealous. This looks better: time = time.replace( /^0*(0:)+/, '24' );