1 | // s = mail address or gmail handle |
2 | static S completeGMailAddress(S s) { |
3 | if (empty(s)) ret s; |
4 | int i = s.indexOf('@'); |
5 | if (i >= 0) ret s; |
6 | ret s + "@gmail.com"; |
7 | } |
Began life as a copy of #1003576
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: | #1014693 |
Snippet name: | completeGMailAddress - see gmailGetHandle |
Eternal ID of this version: | #1014693/2 |
Text MD5: | 1afd26f664e77164c32e6bc93d8115f2 |
Author: | stefan |
Category: | javax / gmail bot |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-30 08:18:09 |
Source code size: | 174 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 450 / 448 |
Version history: | 1 change(s) |
Referenced in: | [show references] |