Skip to content

Commit 252cbc9

Browse files
committed
apply_camera_style - made spaces conditional in the pattern match
so that pattern names with spaces will match models that don't have spaces
1 parent cd31d18 commit 252cbc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

official/apply_camera_style.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ local function process_pattern(pattern)
162162
else
163163
pattern = string.gsub(pattern, "?", ".")
164164
end
165+
pattern = string.gsub(pattern, " ", " ?")
165166
-- escape dashes
166167
pattern = string.gsub(pattern, "%-", "%%-")
167168
-- until we end up with a set, I'll defer set processing, i.e. [...]

0 commit comments

Comments
 (0)