commit 88311766c0257788f1b22db21a0dbd670b2cc38e
parent 7726d38296a3ceee136ddc3858fc6ec1d95847e2
Author: Friedel Schoen <[email protected]>
Date:   Mon, 10 Oct 2022 02:12:49 +0200
fixing bug - import without specific variables
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/main.d b/src/main.d
@@ -115,8 +115,12 @@ void main(string[] args) {
 					outfile.write(softEnd);
 				softEnd = null;
 			}
-			string[] idents = match[3][1 .. $].split(",").map!(x => x.idup.strip).array;
-			idents.sort();
+
+			string[] idents;
+			if (match[3]) {
+				idents = match[3][1 .. $].split(",").map!(x => x.idup.strip).array;
+				idents.sort();
+			}
 			matches ~= Import(match[2].idup, idents, match[1].idup, match[4].idup);
 		} else {
 			if (!softEnd && line.stripLeft == "") {