apply_camera_style - made spaces conditional in the pattern match

so that pattern names with spaces will match
                     models that don't have spaces
This commit is contained in:
Bill Ferguson
2025-02-15 13:55:08 -05:00
parent cd31d18075
commit 252cbc96f2

View File

@@ -162,6 +162,7 @@ local function process_pattern(pattern)
else
pattern = string.gsub(pattern, "?", ".")
end
pattern = string.gsub(pattern, " ", " ?")
-- escape dashes
pattern = string.gsub(pattern, "%-", "%%-")
-- until we end up with a set, I'll defer set processing, i.e. [...]