From a8823c2f505b1ae3d86cf3610a80d538a28859ed Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 30 Nov 2013 05:06:37 +0100 Subject: [PATCH] ANN: Updated HTML patterns. --- ANN.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ANN.pm b/ANN.pm index f10e869..6dd02e9 100644 --- a/ANN.pm +++ b/ANN.pm @@ -58,7 +58,7 @@ sub getlist # The only way to recognize entries that seems sure is to look # after the "HOVERLINE" class. - while($html =~ /]*>(]*>)?(\.*\<\/small\>)?\s*([^<]+)<\//ig) { + while($html =~ /]*>(]*>)?([^<]*<\/small>)?\s*([^<]+)<\//ig) { if((substr "" . lc $4 , 0, length $name) eq lc $name) { push @ret, $4; } @@ -83,7 +83,7 @@ sub getid # The only way to recognize entries that seems sure is to look # after the "HOVERLINE" class. - while($html =~ /]*>(]*>)?(\.*\<\/small\>)?\s*([^<]+)<\//ig) { + while($html =~ /]*>(]*>)?([^<]*<\/small>)?\s*([^<]+)<\//ig) { if((substr "" . lc $4 , 0, length $name) eq lc $name) { return ($1 =~ /id=(\d+)$/)[0]; } -- 2.11.0