Diff

plugins/mod_pep.lua @ 1461:51f0202b0868

mod_pep: Escape + in pattern
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Jul 2009 15:43:27 +0100
parent 1457:4723bd466a54
child 1522:569d58d21612
line wrap: on
line diff
--- 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