# HG changeset patch # User Nathan Phillip Brink # Date 2012-12-11 02:15:13 # Node ID 63ff4e5ba0ec66607ad37c5b099d65d71b91a1f7 # Parent 3bdee2bad3fb2227ca559eb121344fe6f5c4ca41 Relax pagination-parsing regex so that it doesn’t care between CRLF and LF, prerequisite for fixing bug #146 (cornerstone support). diff --git a/inc/school.crawl.webadvisor.inc b/inc/school.crawl.webadvisor.inc --- a/inc/school.crawl.webadvisor.inc +++ b/inc/school.crawl.webadvisor.inc @@ -615,7 +615,7 @@ function school_crawl_webadvisor_semeste } } - if (!preg_match(';Page ([0-9]+) of ([0-9]+)\$;m', $html, $pages)) + if (!preg_match(';Page ([0-9]+) of ([0-9]+)\\;', $html, $pages)) { school_crawl_logf($school_crawl_log, 0, 'Unable to determine the number of pages in this resultset'); break;