From eac96a7d0505fb15a9872df1bf66a98b6755327b Mon Sep 17 00:00:00 2001
From: Lawrence Hemsley <lawrence.hemsley@gmail.com>
Date: Sat, 9 Mar 2019 15:12:27 -0700
Subject: [PATCH] Fix for isuue #398

---
 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 f406e2b..f0abebb 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 : isAlphaNum;
 
 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 == '-' || 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 == '_' || 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 == '-' || isAlphaNum(b)))(true, s);
 }
 
 unittest {