1 | // also does validity testing |
2 | static S formatChannelName(S name) { |
3 | name = dropPrefix("#", name); |
4 | assertTrue(isIdentifier(name)); |
5 | ret "#" + name; |
6 | } |
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: | #1002196 |
Snippet name: | formatChannelName (Slack channels) |
Eternal ID of this version: | #1002196/1 |
Text MD5: | 68b4b4f8d14608e4fa0754d2845014b8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-25 16:53:24 |
Source code size: | 157 bytes / 6 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 578 / 889 |
Referenced in: | [show references] |