From: Joseph Lewis Date: Mon, 6 Aug 2012 16:34:24 +0000 (-0600) Subject: Changed trim to use a dojo function. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e785692f7a9a12d15673d7120fe8543331448dd8;p=evergreen%2Fjoelewis.git Changed trim to use a dojo function. --- 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); } /**