chiark
/
gitweb
/
~ijackson
/
ypp-sc-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chart scraper: cope with {{current}}
[ypp-sc-tools.git]
/
yarrg
/
CommodsScrape.pm
diff --git
a/yarrg/CommodsScrape.pm
b/yarrg/CommodsScrape.pm
index 4b027f185f76b9ed1dcb9ca44a92c68c90c8fb9c..ccc2d98bd0ea4624fb7d977e5411b8459a414686 100644
(file)
--- a/
yarrg/CommodsScrape.pm
+++ b/
yarrg/CommodsScrape.pm
@@
-55,7
+55,7
@@
sub yppedia_chart_parse ($$ $$$$ $) {
s/^\s*//; chomp; s/\s+$//; s/\s+/ /g;
s/\<\/?(?:b|em)\>//g;
s/\{\{(?:chart\ style|Chart league difficulty)\|[^{}]*\}\}//gi;
s/^\s*//; chomp; s/\s+$//; s/\s+/ /g;
s/\<\/?(?:b|em)\>//g;
s/\{\{(?:chart\ style|Chart league difficulty)\|[^{}]*\}\}//gi;
- s/^\{\{
testing
\}\}//;
+ s/^\{\{
(?:testing|current)
\}\}//;
next unless m/\{\{/; # only interested in chart template stuff
if (($x,$y,$arch) =
next unless m/\{\{/; # only interested in chart template stuff
if (($x,$y,$arch) =