Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Update test function split_field
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jan 25, 2022
1 parent 67d89cf commit 7a3023e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions data/review/split_field/result_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"others" : [ {
"tools" : "hammer--saw--bow"
} ],
"OTHERS" : [ {
"tools" : "hammer--saw--bow"
} ],
"OTHERS" : [ ],
"animals" : [ "dog", "cat", "zebra" ]
}
7 changes: 4 additions & 3 deletions data/review/split_field/split_field_2.fix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ move_field("people.investigators","people.investigators[]")
# This still does not work:
# split_field("others[].*.tools","--")
# do list("others[]")
# move_field("tools","tails[]")
# move_field("tools","tails[]")
# end

# split_field("OTHERS[].1.tools","--")
# move_field("OTHERS[].1.tools","OTHERS[].1.tails[]")
# This results in empty array:
split_field("OTHERS[].1.tools","--")
move_field("OTHERS[].1.tools","OTHERS[].1.tools[]")

0 comments on commit 7a3023e

Please sign in to comment.