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: | 535 / 610 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028049 - domainIsUnderOneOf #1032007 - test_domainIsUnder (OK) #1032008 - domainIsUnder_extended - domainIsUnder plus *. (any subdomain) and @. (exact domain) |