Skip to content

Commit

Permalink
Test 880
Browse files Browse the repository at this point in the history
  • Loading branch information
waltkb committed Jan 30, 2025
1 parent b01593d commit 1249866
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ data class InputDescriptorField(
}

fun addToMdocRequest(mDocRequestBuilder: MDocRequestBuilder, intentToRetain: Boolean = false): MDocRequestBuilder {
path.firstOrNull()?.trimStart('$')?.replace("['", "")?.replace("']", ".")?.trimEnd('.')?.split('.')
?.also { pathSegments ->
mDocRequestBuilder.addDataElementRequest(pathSegments.first(), pathSegments.last(), intentToRetain)
}
path.firstOrNull()?.trimStart('$')?.replace("['", "")?.replace("']", ".")?.trimEnd('.')
?.let { it.substringBeforeLast('.') to it.substringAfterLast('.') } /* see #880 */
?.also { (namespace, lastSegment) ->
mDocRequestBuilder.addDataElementRequest(namespace, lastSegment, intentToRetain)
}
return mDocRequestBuilder
}
}
Expand Down

0 comments on commit 1249866

Please sign in to comment.