Changeset

1461:51f0202b0868

mod_pep: Escape + in pattern
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Jul 2009 15:43:27 +0100
parents 1460:5882ed6219ff
children 1462:44780b856ce7
files plugins/mod_pep.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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