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