From a3668a9e975dc9dd0caa0f1656554967ccac6c30 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Thu, 18 Feb 2010 20:34:29 -0600 Subject: [PATCH] Trim trailing spaces in preprocessing --- Regexps.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Regexps.lua b/Regexps.lua index 9ba5639..d79d09e 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -87,6 +87,7 @@ end Preprocess = { ["|r$"] = "", ["^|c[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]"] = "", + [" +$"] = "", ["improves"] = "increases", ["(increases?) your"] = "%1", ["increases the target's"] = "increases", @@ -112,7 +113,7 @@ IgnoredLines = { "^<.+>$", "^\".+\"$", "^you may trade this item with players that were also eligible to loot this item for the next ", - "^ $", + "^$", "^requires %a[%a ]+ %- neutral$", "^requires %a[%a ]+ %- friendly$", "^requires %a[%a ]+ %- honored$", -- 1.7.9.5