We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db4c02 commit e381fe4Copy full SHA for e381fe4
dstep/translator/IncludeHandler.d
@@ -180,7 +180,8 @@ private:
180
/// Checks if the given include file name should be converted to an import declaration.
181
bool isConvertableInclude (string include)
182
{
183
- return cast(bool)(matchFirst(include, convertableIncludePattern));
+ // Do not try to convert empty strings, no matter what the pattern says.
184
+ return include != "" && cast(bool)(matchFirst(include, convertableIncludePattern));
185
}
186
187
0 commit comments