Skip to content

Commit

Permalink
Added fix for variable category import. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazoompa authored and meek0 committed Jan 30, 2019
1 parent 4f20f8f commit 989c7d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void addCategories(Variable.Builder builder, Map<String, String> variabl
String select_choices = variableMetadata.get("select_choices_or_calculations");
if(!Strings.isNullOrEmpty(select_choices) && hasCategories(variableMetadata)) {
Stream.of(select_choices.split("\\|")).forEach(parts -> {
String[] catParts = parts.split("\\s*,\\s*");
String[] catParts = parts.split("\\s*,\\s*", 2);
builder.addCategory(
Category.Builder
.newCategory(catParts[0])
Expand Down

0 comments on commit 989c7d0

Please sign in to comment.