From: phasefx Date: Tue, 14 Sep 2010 15:49:26 +0000 (+0000) Subject: regexp for robust filename mangling X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c4ac7a5fcdcf0ca011a7005a139741e3539c7a2e;p=evergreen%2Fbjwebb.git regexp for robust filename mangling git-svn-id: svn://svn.open-ils.org/ILS/trunk@17655 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml index f16d773a3..6eae6923d 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml +++ b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml @@ -190,7 +190,7 @@ } try { // fail silently if no custom properties file exists - var custom_src = String(this.src).replace('.','_custom.'); + var custom_src = String(this.src).replace(/\.properties$/,'_custom.properties'); var x2 = new XMLHttpRequest(); x2.open("GET",custom_src,false); x2.send(null);