Commit 51eeb89f authored by vvb2060's avatar vvb2060 Committed by John Wu

Allow consecutive points

parent 0efa73d9
......@@ -76,18 +76,15 @@ static bool validate(const char *s) {
for (char c; (c = *s); ++s) {
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||
(c >= '0' && c <= '9') || c == '_' || c == ':') {
dot = false;
continue;
}
if (c == '.') {
if (dot) // No consecutive dots
return false;
dot = true;
continue;
}
return false;
}
return true;
return dot;
}
static int add_list(const char *pkg, const char *proc = "") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment