Changed trim to use a dojo function. lp_1028544
authorJoseph Lewis <joehms22@gmail.com>
Mon, 6 Aug 2012 16:34:24 +0000 (10:34 -0600)
committerJoseph Lewis <joehms22@gmail.com>
Mon, 6 Aug 2012 16:34:24 +0000 (10:34 -0600)
Open-ILS/web/js/dojo/openils/Util.js

index 1fc363a..dadde96 100644 (file)
@@ -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);
     }
 
     /**