diff --git a/source/dub/dub.d b/source/dub/dub.d index 645ad16..07619df 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -736,7 +736,8 @@ import std.regex; import std.string; - if(content.strip == "") return ""; + content = content.strip; + if (!content.length) return null; static bool regex_initialized = false; static Regex!char comments_pattern, module_pattern;