contrib/autostyle - fixed pattern match for tag result to handle spaces in the pattern
This commit is contained in:
@@ -106,7 +106,7 @@ local function autostyle_apply_one_image (image)
|
|||||||
|
|
||||||
if pref and string.len(pref) >= 6 then
|
if pref and string.len(pref) >= 6 then
|
||||||
-- We need the tag, the value and the style_name provided from the configuration string
|
-- We need the tag, the value and the style_name provided from the configuration string
|
||||||
local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*(%g+)%s*=>%s*(%g+)")
|
local tag, value, style_name = string.match(pref, "(%g+)%s*=%s*([%g ]-)%s*=>%s*(%g+)")
|
||||||
|
|
||||||
-- check they all exist (correct syntax)
|
-- check they all exist (correct syntax)
|
||||||
if (not tag) then
|
if (not tag) then
|
||||||
|
|||||||
Reference in New Issue
Block a user