# HG changeset patch # User Florian Zeitz # Date 1301077214 -3600 # Node ID 1b934a878e84598447e3c0bf61a7e728e04b561a # Parent 65be10a5db6d660b9e8f86dccd83730c9733f6e2 plugins.xeps: Fix pattern used to determine whether the user requested an example diff -r 65be10a5db6d -r 1b934a878e84 plugins/xeps.lua --- 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