mod_pep: Escape + in pattern

Thu, 02 Jul 2009 15:43:27 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 02 Jul 2009 15:43:27 +0100
changeset 1461
51f0202b0868
parent 1460
5882ed6219ff
child 1462
44780b856ce7

mod_pep: Escape + in pattern

plugins/mod_pep.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_pep.lua	Thu Jul 02 04:54:46 2009 +0100
+++ b/plugins/mod_pep.lua	Thu Jul 02 15:43:27 2009 +0100
@@ -193,7 +193,7 @@
 			local notify = {};
 			for _, feature in pairs(disco.tags) do
 				if feature.name == "feature" and feature.attr.var then
-					local nfeature = feature.attr.var:match("^(.*)+notify$");
+					local nfeature = feature.attr.var:match("^(.*)%+notify$");
 					if nfeature then notify[nfeature] = true; end
 				end
 			end

mercurial