1 | static S removeAtName(S s) {
|
2 | if (s.startsWith("<@")) {
|
3 | int i = s.indexOf('>');
|
4 | if (i >= 0) |
5 | ret s.substring(i+1).trim(); |
6 | } |
7 | ret s; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002580 |
| Snippet name: | removeAtName |
| Eternal ID of this version: | #1002580/1 |
| Text MD5: | 70d150a2599a3848da46ff65cbea6caa |
| Author: | stefan |
| Category: | eleu |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-02-03 00:05:03 |
| Source code size: | 157 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 804 / 766 |
| Referenced in: | [show references] |