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

Commit

Permalink
Run test function split_field with new array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jan 24, 2022
1 parent 6a7fd39 commit 4fad913
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/review/split_field/result_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"tools" : "hammer--saw--bow"
} ],
"OTHERS" : [ {
"tools" : [ "hammer", "saw", "bow" ]
"tools" : "hammer--saw--bow"
} ],
"animals" : [ "dog", "cat", "zebra" ]
}
8 changes: 5 additions & 3 deletions data/review/split_field/split_field_2.fix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ move_field("animals","animals[]")
split_field("people.investigators","\\?")
move_field("people.investigators","people.investigators[]")


# This still does not work:
# split_field("others[].*.tools","--")
# do list("others[]")
# move_field("tools","tools[]")
# move_field("tools","tails[]")
# end

split_field("OTHERS[].1.tools","--")
move_field("OTHERS[].1.tools","OTHERS[].1.tools[]")
# split_field("OTHERS[].1.tools","--")
# move_field("OTHERS[].1.tools","OTHERS[].1.tails[]")

0 comments on commit 4fad913

Please sign in to comment.