Skip to content

Commit

Permalink
feat: add base64 getters to udi class
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Oct 31, 2024
1 parent 2b111d2 commit 637c613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Udi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Udi {
static fromUrn(urn: string): Udi {
const parsedUrn = urns.parseURN(urn);
if (parsedUrn.nid.toLowerCase() !== Udi.nid) {
throw new Error(`Invalid nid: ${parsedUrn.nid}`);
throw new Error(`Invalid UDI: ${parsedUrn.nid}`);
}

const parts = parsedUrn.nss.split(":");
Expand Down

0 comments on commit 637c613

Please sign in to comment.