change to this in project.d file
bool isValidProjectName(in string s) pure {
if (s.empty)
return false;
return reduce!q{ a && (b == '_' || b == '-' || (b>='A'
&& b <='Z' || b>='a' && b <='z' || b>='0'
&& b <='9')) }(true, s);
}
bool isValidModuleName(in string s) pure {
if (s.empty)
return false;
return reduce!q{ a && (b == '_' || (b>='A' && b
<='Z' || b>='a' && b <='z' || b>='0' && b
<='9')) }(true, s);
}
bool isValidFileName(in string s) pure {
if (s.empty)
return false;
return reduce!q{ a && (b == '_' || b == '.' || b == '-' ||
(b>='A' && b <='Z' || b>='a' && b <='z' ||
b>='0' && b <='9')) }(true, s);
}
0 件のコメント:
コメントを投稿