1 | // TODO: umlaut domains |
2 | sbool isSimpleDomainName(S s) {
|
3 | ret regexpMatchesIC("[a-z0-9\\-]+\\.[a-z]+", s);
|
4 | } |
Began life as a copy of #1028963
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029642 |
| Snippet name: | isSimpleDomainName (no subdomain) |
| Eternal ID of this version: | #1029642/2 |
| Text MD5: | 4f9600b9824a563abe1d9bc78d6e1b74 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-03 20:45:18 |
| Source code size: | 111 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 471 / 510 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |