Skip to content

Commit

Permalink
Merge pull request #8 from input-output-hk/fix/mediator_did_multiserivce
Browse files Browse the repository at this point in the history
fix: current regex does not supports multiple services within a DID
  • Loading branch information
cristianIOHK committed Nov 24, 2023
2 parents 96722fb + b5ce2ec commit 8f7636c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
}

allprojects {
version = "1.0.4-alpha"
version = "1.0.5-alpha"
group = "io.iohk.atala.prism.didcomm"

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun isPeerDID(peerDID: String): Boolean {
val regex =
(
"^did:peer:(([0](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))" +
"|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))+(.(S)[0-9a-zA-Z=]*)?)))$"
"|(2((.[AEVID](z)([1-9a-km-zA-HJ-NP-Z]{46,47}))+(.(S)[0-9a-zA-Z=]*)*)))$"
).toRegex()
return regex.matches(peerDID)
}
Expand Down

0 comments on commit 8f7636c

Please sign in to comment.