tvcal: fix firstep's
authorMikael Berthe <mikael@lilotux.net>
Thu, 30 Sep 2010 20:44:08 +0200
changeset 43 7f9ecc483f73
parent 42 99477d3c2dda
child 44 b389ddf3bbb3
tvcal: fix firstep's
mcbot/cmds/tvcal.lua
--- a/mcbot/cmds/tvcal.lua	Tue Jun 01 16:41:49 2010 +0200
+++ b/mcbot/cmds/tvcal.lua	Thu Sep 30 20:44:08 2010 +0200
@@ -40,9 +40,9 @@
         local d, m, y = day:match("^(%d+)_(%d+)_(%d%d%d%d)$")
         day = string.format("%04d-%02d-%02d", y, m, d)
 
-        epregex = '<td><a id="[^"]+" href="[^"]+" class="eplink%s*"%s*>([^<]+)</a>'
-        epregex = epregex .. '<span class="seasep"%s*></span><br />'
-        epregex = epregex .. '<span class="seasep"%s*>([^<]+)</span>[%s\n]*</td>'
+        epregex = '<td><a id="[^"]+" href="[^"]+" class="eplink%s*%w*"%s*>([^<]+)</a>'
+        epregex = epregex .. '<span class="seasep%s*%w*"%s*></span><br />'
+        epregex = epregex .. '<span class="seasep%s*%w*"%s*>([^<]+)</span>[%s\n]*</td>'
 
         local shows = {}
         for name, ep in string.gmatch(tab, epregex) do