From bf2b6c6c3729b49e008e8afffdd379f03d603b37 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 26 Nov 2009 23:30:08 +0100 Subject: [PATCH] Fix typo in regex for subscripts. --- pret-lam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2