Skip to content

Commit f31b4b8

Browse files
authored
Update PlainKeyValueStreamListener.java
1 parent f84c4a0 commit f31b4b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/xbib/elasticsearch/common/util/PlainKeyValueStreamListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
3838

3939
public class PlainKeyValueStreamListener<K, V> implements KeyValueStreamListener<K, V> {
40-
private final static String CustomValueSeperators = "|;~!@#$%^&";
40+
private final static String ValueSeperators = ",|;~!@#$%^&";
4141
private final static Pattern p = Pattern.compile("^(.*)\\[(.*?)\\]$");
4242

4343
/**
@@ -290,7 +290,7 @@ protected Map<String, Object> merge(Map<String, Object> map, Object k, Object va
290290
}
291291
if (index == null || index.isEmpty()) {
292292
map.put(head, new Values(map.get(head), value, isSequence));
293-
else if (index.length() == 1 && CustomValueSeperators.contains(index)) {
293+
else if (index.length() == 1 && ValueSeperators.contains(index)) {
294294
map.put(head, new Values(map.get(head), value, isSequence, Pattern.quote(index)));
295295
} else {
296296
if (!map.containsKey(head)) {

0 commit comments

Comments
 (0)