From d107c44c3114ff6fff6ce62d8e2399b16d07047b Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 5 Nov 2007 20:59:27 +0000 Subject: [PATCH] inline the regexp the sprintf implementation uses git-svn-id: svn://svn.open-ils.org/ILS/trunk@8008 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/main/bindings.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 c9ec26735e..641514d5b0 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml +++ b/Open-ILS/xul/staff_client/chrome/content/main/bindings.xml @@ -244,7 +244,7 @@ } var a = arguments, i = 0, format = a[i++]; - return format.replace(this.regex, function(substring, valueIndex, flags, minWidth, _, precision, type) { + return format.replace(/%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEGS])/g, function(substring, valueIndex, flags, minWidth, _, precision, type) { if (substring == '%%') return '%'; // parse flags @@ -327,7 +327,6 @@ } }); } - this.sprintf.regex = /%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g; } catch(e) { alert("*** Failed to load sprintf library: " + e + "\n"); throw(e); -- 2.11.0