static S dropBracketPrefix(S s) { s = s.trim(); if (s.startsWith("[")) { int i = s.indexOf(']'); ret s.substring(i+1).trim(); } ret s; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003696 |
Snippet name: | dropBracketPrefix - drop leading "[...]" and trim |
Eternal ID of this version: | #1003696/2 |
Text MD5: | 709fec5c631fd4507fe2b1241d914dbc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 12:43:47 |
Source code size: | 159 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 605 / 626 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013779 - dropLeadingDate - synonym of dropBracketPrefix |