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

7
LINES

< > BotCompany Repo | #1033595 // domainOrNull

JavaX fragment (include)

1  
sS domainOrNull(S url) {
2  
  try {
3  
    ret hostNameFromURL(url);
4  
  } catch e {
5  
    null;
6  
  }
7  
}

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