From: Wolfram Schneider Date: Wed, 28 Aug 2013 15:40:02 +0000 (+0200) Subject: hit counter: will pass the test for Danish and German language X-Git-Tag: 0.9.1~202^2~36 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=fe1c7e888fbbc54b10d62a41f2cddfe523c5194e hit counter: will pass the test for Danish and German language --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 772127d..996a954 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -6,11 +6,11 @@ var debug = mkws.debug; -function get_hit_counter() { +var get_hit_counter = function () { if ($("#mkwsPager").length == 0) return -1; var found = $("#mkwsPager").text(); - var re = /found: ([0-9]+)/; + var re = /\([A-Za-z]+:\s+([0-9]+)\)/; re.exec(found); var hits = -1;