From b9cc0dccce648887ae2b54ee5ad0f00fcd1c9f91 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sun, 1 Jun 2025 16:36:52 -0400 Subject: [PATCH] official/apply_camera_style - made spaces in camera name conditional matches as some are squashed and others (Olympus) are not. --- official/apply_camera_style.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/official/apply_camera_style.lua b/official/apply_camera_style.lua index b162ffe..c82a91b 100644 --- a/official/apply_camera_style.lua +++ b/official/apply_camera_style.lua @@ -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 .. "$"