Skip to content

Commit 3ec9dc4

Browse files
authored
Merge pull request #565 from wpferguson/fix_autostyle_pattern_match
fix autostyle pattern match
2 parents 926272b + cddb86d commit 3ec9dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/autostyle.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ local function autostyle_apply_one_image (image)
106106

107107
if pref and string.len(pref) >= 6 then
108108
-- We need the tag, the value and the style_name provided from the configuration string
109-
local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*(%g+)%s*=>%s*(%g+)")
109+
local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*([%g ]-)%s*=>%s*(%g+)")
110110

111111
-- check they all exist (correct syntax)
112112
if (not tag) then

0 commit comments

Comments
 (0)