Libraryless. Click here for Pure Java version (2987L/17K).
1 | sbool domainIsUnder_extended(S domain, S mainDomain) {
|
2 | new Matches m; |
3 | if (startsWith(mainDomain, "@.", m)) |
4 | ret eqic(domain, m.rest()); |
5 | if (startsWith(mainDomain, "*")) |
6 | ret ewic(domain, substring(mainDomain, 1)); |
7 | ret domainIsUnder(domain, mainDomain); |
8 | } |
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: | 407 / 524 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |