urban: fix page detection logic
authorRaine Virta <rane@kapsi.fi>
Wed, 21 Oct 2009 15:52:41 +0000 (18:52 +0300)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 21 Oct 2009 17:03:51 +0000 (19:03 +0200)
commit402c66aa5228f734e88abd7b3cdc482f71239553
treedebcca2eae2274e17abeab721cea5ab0729089fb
parent49ddfa785796f3ae4550ace918fd8282bd91e42a
urban: fix page detection logic

numpages = s[%r{<div id='paginator'>.*?</div>}m].scan(/\d+/)
                                                ^
                            produces an error when regex returns nil
data/rbot/plugins/urban.rb