Skip to content

Commit b9cc0dc

Browse files
committed
official/apply_camera_style - made spaces in camera name conditional
matches as some are squashed and others (Olympus) are not.
1 parent b70fdc0 commit b9cc0dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

official/apply_camera_style.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ local function process_pattern(pattern)
166166
end
167167
-- escape dashes
168168
pattern = string.gsub(pattern, "%-", "%%-")
169+
-- make spaces optional
170+
pattern = string.gsub(pattern, " ", " ?")
169171
-- until we end up with a set, I'll defer set processing, i.e. [...]
170172
-- anchor the pattern to ensure we don't short match
171173
pattern = "^" .. pattern .. "$"

0 commit comments

Comments
 (0)