Libraryless. Click here for Pure Java version (1479L/10K).
sS doubleToSingleSlashesInURL(S s) { new StringBuilder buf; for i over s: if (!(s.charAt(i) == '/' && charAt(s, i-1) != ':' && charAt(s, i+1) == '/')) buf.append(s.charAt(i)); ret str(buf); }
Began life as a copy of #1023472
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023473 |
Snippet name: | doubleToSingleSlashesInURL |
Eternal ID of this version: | #1023473/1 |
Text MD5: | c6f8860afc40fae1d8bb3aff7c0b7636 |
Transpilation MD5: | 71d1f94196fa0e6c3e768e15095b4728 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-23 17:44:33 |
Source code size: | 213 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 263 / 372 |
Referenced in: | [show references] |