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

7
LINES

< > BotCompany Repo | #1033595 - domainOrNull

JavaX fragment (include)

sS domainOrNull(S url) {
  try {
    ret hostNameFromURL(url);
  } catch e {
    null;
  }
}

Author comment

Began life as a copy of #764

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033595
Snippet name: domainOrNull
Eternal ID of this version: #1033595/1
Text MD5: d2bc55a240cb1d93c184df3af7f2760e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-14 20:39:15
Source code size: 98 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 3 / 8
Referenced in: [show references]