From e785692f7a9a12d15673d7120fe8543331448dd8 Mon Sep 17 00:00:00 2001 From: Joseph Lewis Date: Mon, 6 Aug 2012 10:34:24 -0600 Subject: [PATCH] Changed trim to use a dojo function. --- Open-ILS/web/js/dojo/openils/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/Util.js b/Open-ILS/web/js/dojo/openils/Util.js index 1fc363ac0b..dadde96a2b 100644 --- a/Open-ILS/web/js/dojo/openils/Util.js +++ b/Open-ILS/web/js/dojo/openils/Util.js @@ -292,7 +292,7 @@ if(!dojo._hasResource["openils.Util"]) { * Convenience function to trim leading and trailing whitespace at once. */ openils.Util.trimString = function(s) { - return s.replace(/^\s*(.*?)\s*$/,"$1"); + return dojo.trim(s); } /** -- 2.11.0