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

3
LINES

< > BotCompany Repo | #1023589 // domainIsUnder (is it the same or a subdomain?)

JavaX fragment (include)

sbool domainIsUnder(S domain, S mainDomain) {
  ret eqic(domain, mainDomain) || ewic(domain, "." + mainDomain);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023589
Snippet name: domainIsUnder (is it the same or a subdomain?)
Eternal ID of this version: #1023589/2
Text MD5: cd5ac030a44dbbfeee824041b2253ef6
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-29 17:04:50
Source code size: 115 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 258 / 315
Version history: 1 change(s)
Referenced in: [show references]