(2021-04-24, 9:27)Stefan Frenz Wrote: Thanks for testing and reporting. Indeed I assumed that set numbers do not include hyphens, and in most cases this would be a mistake. This is the regular expression I use for testing:
Code:^([a-z0-9]+)(-[a-z0-9]+)? - (.*)
Hmmmm. What would be the desired behavior for LDInspector? I remember the discussion about the "-1" suffix...
Does LDInspector test whether the set number itself is valid? If so, it should recognize 700-1. Or rather, it should recognize 700/1, but understand that "-" is a substitute for "/". So, in short, I guess it should allow "-" or maybe "." in addition to [a-z0-9] in the first string?
(Maybe the real problem isn't one of LDInspector at all, but rather of having a standard substitute for the / character in the LDraw format.)
The "-1" suffix is an additional quirk. True, it shouldn't be required for the oldest of multiple sets with the same number. But in this case, the "-1" represent the first of two variations of the same set. (Set 700/1 existed continuously from 1949 to 1965, but over that time the packaging and contents were continually varied.)