1 | static S dropBracketPrefix(S s) {
|
2 | s = s.trim(); |
3 | if (s.startsWith("[")) {
|
4 | int i = s.indexOf(']');
|
5 | ret s.substring(i+1).trim(); |
6 | } |
7 | ret s; |
8 | } |
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: | 909 / 917 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |