weechatRN

Weechat relay client for iOS using websockets https://github.com/mhoran/weechatRN
git clone http://git.hanabi.in/repos/weechatRN.git
Log | Files | Refs | README | LICENSE

url-formatter.ts (254B)


      1 export const formatUrl = (type: string, text: string): string => {
      2   switch (type) {
      3     case 'url':
      4       return text;
      5     case 'email':
      6       return 'mailto:' + text;
      7     case 'phone':
      8       return 'tel:' + text;
      9     default:
     10       return text;
     11   }
     12 };