From aab85a4e27e71e4a6ab66c3670f8c614a6676837 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 1 Dec 2011 22:06:07 +0100 Subject: [PATCH] Bugfix: unable to read back config file if start or end gcode was empty. #84 --- lib/Slic3r/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index c75ef5c5c3..80b1445068 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -289,7 +289,7 @@ sub load { open my $fh, '<', $file; while (<$fh>) { next if /^\s*#/; - /^(\w+) = (.+)/ or die "Unreadable configuration file (invalid data at line $.)\n"; + /^(\w+) = (.*)/ or die "Unreadable configuration file (invalid data at line $.)\n"; my $key = $1; if (!exists $Options->{$key}) { $key = +(grep { $Options->{$_}{aliases} && grep $_ eq $key, @{$Options->{$_}{aliases}} }