Libraryless. Click here for Pure Java version (2987L/17K).
sbool domainIsUnder_extended(S domain, S mainDomain) { new Matches m; if (startsWith(mainDomain, "@.", m)) ret eqic(domain, m.rest()); if (startsWith(mainDomain, "*")) ret ewic(domain, substring(mainDomain, 1)); ret domainIsUnder(domain, mainDomain); }
Began life as a copy of #1023589
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032008 |
| Snippet name: | domainIsUnder_extended - domainIsUnder plus *. (any subdomain) and @. (exact domain) |
| Eternal ID of this version: | #1032008/3 |
| Text MD5: | b7e3b83f1e2985901176c8d3c5e16b37 |
| Transpilation MD5: | 6a039c2d56d3833288fe11365780c1fe |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-10 23:17:08 |
| Source code size: | 275 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 406 / 523 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |