allow empty ID in filename for extraction of circuit+suffix

This commit is contained in:
john30
2017-01-01 15:33:50 +01:00
parent faa331e96a
commit f2d1ab30cd
+1 -1
View File
@@ -353,7 +353,7 @@ public:
}
if (name.length()>1) {
pos = name.find('.', 1); // check for ".IDENT."
if (pos!=string::npos && pos>2 && pos<=6) { // up to 5 chars between two "."s, immediately after "ZZ."
if (pos!=string::npos && pos>=1 && pos<=6) { // up to 5 chars between two "."s, immediately after "ZZ.", or ".."
ident = circuit = name.substr(1, pos-1);
name.erase(0, pos);
pos = name.find('.', 1); // check for ".CIRCUIT."