diff --git a/pandoc-ling.lua b/pandoc-ling.lua index 507414f..6aa3769 100644 --- a/pandoc-ling.lua +++ b/pandoc-ling.lua @@ -454,7 +454,7 @@ end function formatGlossLine (s) -- turn uppercase in gloss into small caps local split = {} - for lower,upper in string.gmatch(s, "(.-)([%u%d][%u%d]+)") do + for lower,upper in string.gmatch(s, "(.-)([%u%d]+)") do if lower ~= "" then lower = pandoc.Str(lower) table.insert(split, lower) @@ -462,7 +462,7 @@ function formatGlossLine (s) upper = pandoc.SmallCaps(pandoc.text.lower(upper)) table.insert(split, upper) end - for leftover in string.gmatch(s, "[%u%d][%u%d]+(.-[^%u%s])$") do + for leftover in string.gmatch(s, "[%u%d]+(.-[^%u%s])$") do leftover = pandoc.Str(leftover) table.insert(split, leftover) end