mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
mdig.c: tab formatting
This commit is contained in:
parent
177dda3760
commit
029a5cada9
@ -76,11 +76,11 @@ static const char* eai_str(int r)
|
|||||||
|
|
||||||
static bool dom_valid(char *dom)
|
static bool dom_valid(char *dom)
|
||||||
{
|
{
|
||||||
if (!dom || *dom=='.') return false;
|
if (!dom || *dom=='.') return false;
|
||||||
for (; *dom; dom++)
|
for (; *dom; dom++)
|
||||||
if (*dom < 0x20 || (*dom & 0x80) || !(*dom == '.' || *dom == '-' || *dom == '_' || (*dom >= '0' && *dom <= '9') || (*dom >= 'a' && *dom <= 'z') || (*dom >= 'A' && *dom <= 'Z')))
|
if (*dom < 0x20 || (*dom & 0x80) || !(*dom == '.' || *dom == '-' || *dom == '_' || (*dom >= '0' && *dom <= '9') || (*dom >= 'a' && *dom <= 'z') || (*dom >= 'A' && *dom <= 'Z')))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void invalid_domain_beautify(char *dom)
|
static void invalid_domain_beautify(char *dom)
|
||||||
|
Loading…
Reference in New Issue
Block a user