Skip to content

Commit

Permalink
fix: use . for path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Aug 14, 2023
1 parent 2598fb8 commit b80def1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Document(rawDocument: Map<String, Any?>, dataContract: DataContract) : Bas
}

fun get(path: String): Any? {
val keys = path.split("/")
val keys = path.split('.')
var value: Any? = data
for (key in keys) {
if ((value as Map<String, Any?>).containsKey(key)) {
Expand Down

0 comments on commit b80def1

Please sign in to comment.