Quantcast

Trim trailing spaces in preprocessing

Kevin Lyles [02-19-10 - 02:34]
Trim trailing spaces in preprocessing
Filename
Regexps.lua
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$",