From 8a3bca8307c287a0bad03633d5e6b4d9fa2e4cb3 Mon Sep 17 00:00:00 2001 From: Sean Takats Date: Wed, 24 Jan 2007 01:32:25 +0000 Subject: [PATCH] Addresses #501. Had a problem with an accented character in a regular expression --- scrapers.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index 1a59b6d75..22998e8d3 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 166 +-- 167 -- ***** BEGIN LICENSE BLOCK ***** -- @@ -22,7 +22,7 @@ -- Set the following timestamp to the most recent scraper update date -REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-01-23 23:30:00')); +REPLACE INTO version VALUES ('repository', STRFTIME('%s', '2007-01-24 01:35:00')); REPLACE INTO translators VALUES ('96b9f483-c44d-5784-cdad-ce21b984fe01', '1.0.0b3.r1', '', '2006-12-15 03:40:00', 1, 100, 4, 'Amazon.com', 'Sean Takats', '^https?://(?:www\.)?amazon', 'function detectWeb(doc, url) { @@ -6289,7 +6289,7 @@ function doWeb(doc, url) { }'); -REPLACE INTO translators VALUES ('1b9ed730-69c7-40b0-8a06-517a89a3a278', '1.0.0b3r1', '', '2007-01-23 23:30:00', '0', '100', '4', 'Sudoc', 'Sean Takats', '^http://www\.sudoc\.abes\.fr', +REPLACE INTO translators VALUES ('1b9ed730-69c7-40b0-8a06-517a89a3a278', '1.0.0b3r1', '', '2007-01-24 01:35:00', '0', '100', '4', 'Sudoc', 'Sean Takats', '^http://www\.sudoc\.abes\.fr', 'function detectWeb(doc, url) { var namespace = doc.documentElement.namespaceURI; var nsResolver = namespace ? function(prefix) { @@ -6306,7 +6306,7 @@ REPLACE INTO translators VALUES ('1b9ed730-69c7-40b0-8a06-517a89a3a278', '1.0.0b else if (elt = doc.evaluate(xpath, doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) { var contenu = elt.textContent; - var numRegexp = /(Num?ro.*de.*notice|Record.*number)/; + var numRegexp = /(Num.ro.de.notice|Record.number)/; var m = numRegexp.exec(contenu); if (m) { // On a bien une notice d"ouvrage, on doit chercher limage