From: Thomas Berezansky Date: Tue, 23 Oct 2012 20:27:00 +0000 (-0400) Subject: Add missing ? to url_prefix regex check X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d19878b7d312718a0a568f8c3a356cc3ea8a5180;p=contrib%2FConifer.git Add missing ? to url_prefix regex check Fixes Barcode Completion and who knows what else. Signed-off-by: Thomas Berezansky Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js index 207e1f8356..09c8671cec 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js @@ -596,7 +596,7 @@ if(base_url) { base_url = base_url[0]; if(urls[base_url]) - url = url.replace(/^[^?/|]+\|/, urls[base_url]); + url = url.replace(/^[^?/|]+\|?/, urls[base_url]); } if (url.match(/^\//)) url = urls.remote + url; if (! url.match(/^(http|https|chrome|oils):\/\//) && ! url.match(/^data:/) ) url = 'http://' + url;