From: Matthijs Kooijman Date: Thu, 26 Nov 2009 22:30:08 +0000 (+0100) Subject: Fix typo in regex for subscripts. X-Git-Tag: final-thesis~139 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=bf2b6c6c3729b49e008e8afffdd379f03d603b37 Fix typo in regex for subscripts. --- diff --git a/pret-lam.lua b/pret-lam.lua index 97a5376..12fa94e 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -108,7 +108,7 @@ local function do_subscripts(word) submatches[#submatches+1] = "^(" .. base .. ")([%a%d])$" -- Seconde, the base with a longer prefix that includes at least -- one of +-, (to catch things like ri+1, but not return). - submatches[#submatches+1] = "^(" .. base .. ")([%a%d]*[%-%+%,]+[%a%d%-%+%,]*)$" + submatches[#submatches+1] = "^(" .. base .. ")([%a%d]*[%-%+,]+[%a%d%-%+,]*)$" end end return word