From d19878b7d312718a0a568f8c3a356cc3ea8a5180 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 23 Oct 2012 16:27:00 -0400 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0