From: Wolfram Schneider Date: Mon, 17 Mar 2014 14:23:12 +0000 (+0000) Subject: allow hostnames with dash ("-"), e.g mkc-cproxy.indexdata.com X-Git-Tag: 1.0.0~1317 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=48e96731e9c48f770a3ee027c020a0113f703592;p=mkws-moved-to-github.git allow hostnames with dash ("-"), e.g mkc-cproxy.indexdata.com --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 2b1f250..76f4834 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -367,7 +367,7 @@ describe("Show record", function () { debug("URL: " + url.attr('href') + " text: " + url.text()); expect(url.attr('href')).not.toBe(null); - expect(url.attr('href')).toMatch(/^https?:\/\/[a-z0-9]+\.[0-9a-z].*\//i); + expect(url.attr('href')).toMatch(/^https?:\/\/[a-z0-9\-]+\.[0-9a-z].*\//i); expect(url.text()).not.toBe(""); } });