[Swift-commit] r7880 - trunk/src/org/griphyn/vdl/mapping/file

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Wed May 28 23:16:22 CDT 2014


Author: hategan
Date: 2014-05-28 23:16:21 -0500 (Wed, 28 May 2014)
New Revision: 7880

Modified:
   trunk/src/org/griphyn/vdl/mapping/file/FixedArrayFileMapper.java
Log:
coalesce multiple separators in fixed array mapper (i.e. "a, b" is now properly split into "a", "b" instead of "a", "", "b")

Modified: trunk/src/org/griphyn/vdl/mapping/file/FixedArrayFileMapper.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/file/FixedArrayFileMapper.java	2014-05-19 14:49:05 UTC (rev 7879)
+++ trunk/src/org/griphyn/vdl/mapping/file/FixedArrayFileMapper.java	2014-05-29 04:16:21 UTC (rev 7880)
@@ -71,7 +71,7 @@
 		}
 		else if (Types.STRING.equals(files.getType())) {
 		    String v = (String) files.getValue();
-		    this.files = v.split("[\\s,;]");
+		    this.files = v.split("[\\s,;]+");
 		}
 	}
 




More information about the Swift-commit mailing list