Skip to content
Snippets Groups Projects
Commit 3614b66c authored by Adam Laskowski's avatar Adam Laskowski
Browse files

SSDM-13524: Added handling of '\,' character in string array type

parent b44784ea
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -19,6 +19,7 @@ import java.lang.reflect.Array;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.function.Function;
import java.util.regex.Pattern;
import org.hibernate.Session;
......@@ -877,7 +878,9 @@ public final class EntityPropertiesConverter implements IEntityPropertiesConvert
{
return null;
}
return Arrays.stream(value.split(SEPARATOR))
// Special regex to allow strings with ',' character
String regex = "(?<!\\\\)" + Pattern.quote(SEPARATOR);
return Arrays.stream(value.split(regex))
.map(String::trim)
.toArray(String[]::new);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment