make sure that splitting values maintains empty cells if the separator is repeated

(this is useful in case the cells contains a rigid structure across multiple columns)

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1062 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-07-01 07:47:57 +00:00
parent 2302d017d8
commit 9fbff0640b

View File

@ -92,7 +92,7 @@ public class MultiValuedCellSplitOperation extends AbstractOperation {
if (_mode.equals("regex")) { if (_mode.equals("regex")) {
values = s.split(_separator); values = s.split(_separator);
} else { } else {
values = StringUtils.splitByWholeSeparator(s, _separator); values = StringUtils.splitByWholeSeparatorPreserveAllTokens(s, _separator);
} }
if (values.length < 2) { if (values.length < 2) {