plugins/xeps.lua

changeset 75
1b934a878e84
parent 34
23e17e64ca25
child 83
4a25cd97711d
--- a/plugins/xeps.lua	Thu Mar 17 18:11:34 2011 +0100
+++ b/plugins/xeps.lua	Fri Mar 25 19:20:14 2011 +0100
@@ -30,7 +30,7 @@
 		local xepnum = command.param;
 		if not xepnum then return "Please supply an XEP number or a search string :)"; end
 			if not tonumber(xepnum) then -- Search for an XEP
-				if xepnum:match("^%d+ ex") then
+				if xepnum:match("^(%d+) ex%S* (%d+)$") then
 					local num, example = xepnum:match("^(%d+) ex%S* (%d+)$");
 					return "http://xmpp.org/extensions/xep-"..string.rep("0", 4-num:len())..num..".html#example-"..tostring(example);
 				end

mercurial