fix regexp of product name in page

This commit is contained in:
Romain Bignon 2012-07-25 21:56:40 +02:00
commit 344ab189fc

View file

@ -51,7 +51,7 @@ class ComparisonResultsPage(BasePage):
except BrokenPageError:
return NotAvailable
else:
m = re.match('Carburant : (\w+) | .*', div.text)
m = re.match('Carburant : ([\w\-]+) | .*', div.text)
return m.group(1)
def iter_results(self, product=None):