Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1002196 // formatChannelName (Slack channels)

JavaX fragment (include)

// also does validity testing
static S formatChannelName(S name) {
  name = dropPrefix("#", name);
  assertTrue(isIdentifier(name));
  ret "#" + name;
}

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: 576 / 886
Referenced in: [show references]