You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/25 00:59:13 UTC

svn commit: r1496276 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js

Author: joyce
Date: Mon Jun 24 22:59:13 2013
New Revision: 1496276

URL: http://svn.apache.org/r1496276
Log:
CLIMATE-153 progress - Update whitespace removal regex

- The Regex was replacing leading and trailing whitespace with a single
  whitespace character instead of completely stripping it off.

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js?rev=1496276&r1=1496275&r2=1496276&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/filters/ISODateToMiddleEndian.js Mon Jun 24 22:59:13 2013
@@ -26,7 +26,7 @@ App.Filters.filter('ISODateToMiddleEndia
 		var original = input;
 
 		// Strip whitespace from the start and end of the string
-		input = input.replace(/(^\s+|\s+$)/g,' ');
+		input = input.replace(/(^\s+|\s+$)/g, '');
 
 		// ISO Standard says time is separated from Date with a 'T'. Our timestamps
 		// slightly modify that and use a space. We'll check for both here and prefer