Skip to content

Commit 8f7636c

Browse files
authored
Merge pull request #8 from input-output-hk/fix/mediator_did_multiserivce
fix: current regex does not supports multiple services within a DID
2 parents 96722fb + b5ce2ec commit 8f7636c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ buildscript {
1919
}
2020

2121
allprojects {
22-
version = "1.0.4-alpha"
22+
version = "1.0.5-alpha"
2323
group = "io.iohk.atala.prism.didcomm"
2424

2525
repositories {

didpeer/src/commonMain/kotlin/io/iohk/atala/prism/didcomm/didpeer/PeerDIDCreator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fun isPeerDID(peerDID: String): Boolean {
2020
val regex =
2121
(
2222
"^did:peer:(([0](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))" +
23-
"|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))+(.(S)[0-9a-zA-Z=]*)?)))$"
23+
"|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))+(.(S)[0-9a-zA-Z=]*)*)))$"
2424
).toRegex()
2525
return regex.matches(peerDID)
2626
}

0 commit comments

Comments
 (0)