Libraryless. Click here for Pure Java version (2747L/17K).
sS urlWithoutQueryAndAnchor(S url) { ret takeFirst(url, min(smartIndexOf(url, "?"), smartIndexOf(url, "#"))); }
Began life as a copy of #1012248
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029914 |
Snippet name: | urlWithoutQueryAndAnchor |
Eternal ID of this version: | #1029914/1 |
Text MD5: | ab776a4ea0407db17f2873a1fe1640c8 |
Transpilation MD5: | 8485b29a54b5a5e3c05b6da2e880291f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-10-03 17:49:44 |
Source code size: | 115 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 296 |
Referenced in: | [show references] |