Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
authorMike Taylor <mike@indexdata.com>
Mon, 17 Mar 2014 17:30:15 +0000 (17:30 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 17 Mar 2014 17:30:15 +0000 (17:30 +0000)
test/spec/mkws-pazpar2.js

index 2b1f250..76f4834 100644 (file)
@@ -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("");
         }
     });