official/apply_camera_style - made spaces in camera name conditional

matches as some are squashed and others
                              (Olympus) are not.
This commit is contained in:
Bill Ferguson
2025-06-01 16:36:52 -04:00
parent b70fdc0ecf
commit b9cc0dccce

View File

@@ -166,6 +166,8 @@ local function process_pattern(pattern)
end
-- escape dashes
pattern = string.gsub(pattern, "%-", "%%-")
-- make spaces optional
pattern = string.gsub(pattern, " ", " ?")
-- until we end up with a set, I'll defer set processing, i.e. [...]
-- anchor the pattern to ensure we don't short match
pattern = "^" .. pattern .. "$"