From 43a82ed2f45143270482aa94c447e577174f0108 Mon Sep 17 00:00:00 2001 From: Roger Knapp Date: Thu, 27 Jun 2019 20:25:57 -0500 Subject: [PATCH] #409 - Fix for error(s) in build accessing std.ascii.isAlphaNum --- src/dlangide/workspace/project.d | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dlangide/workspace/project.d b/src/dlangide/workspace/project.d index f406e2bd..156e74a8 100644 --- a/src/dlangide/workspace/project.d +++ b/src/dlangide/workspace/project.d @@ -11,6 +11,7 @@ import std.file; import std.path; import std.process; import std.utf; +import std.ascii; string[] includePath; @@ -934,19 +935,19 @@ class DubPackageFinder { bool isValidProjectName(in string s) pure { if (s.empty) return false; - return reduce!q{ a && (b == '_' || b == '-' || std.ascii.isAlphaNum(b)) }(true, s); + return reduce!((a,b) => a && (b == '_' || b == '-' || std.ascii.isAlphaNum(b)))(true, s); } bool isValidModuleName(in string s) pure { if (s.empty) return false; - return reduce!q{ a && (b == '_' || std.ascii.isAlphaNum(b)) }(true, s); + return reduce!((a,b) => a && (b == '_' || std.ascii.isAlphaNum(b)))(true, s); } bool isValidFileName(in string s) pure { if (s.empty) return false; - return reduce!q{ a && (b == '_' || b == '.' || b == '-' || std.ascii.isAlphaNum(b)) }(true, s); + return reduce!((a,b) => a && (b == '_' || b == '.' || b == '-' || std.ascii.isAlphaNum(b)))(true, s); } unittest {