sS dropTrailingAndLeadingSlash(S s) { if (startsWith(s, '/') && endsWith(s, '/')) ret substring(s, 1, l(s)-1); ret s; }
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: | #1021538 |
Snippet name: | dropTrailingAndLeadingSlash - only if both are there |
Eternal ID of this version: | #1021538/1 |
Text MD5: | bbf5d0ef15c079e7f7739737c7a0a9f4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-17 15:24:48 |
Source code size: | 131 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 305 / 317 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |