Skip to content

Commit 3792b12

Browse files
committed
CCM-12842: Update type regex to accept match actual events
1 parent 6c156ab commit 3792b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils/src/types/cloud-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const $CloudEvent = $CloudEventBase.extend({
118118
type: z
119119
.string()
120120
.regex(
121-
/^uk\.nhs\.notify\.digital\.letters\.[a-z]+\.v\d+$/,
121+
/^uk\.nhs\.notify\.digital\.letters(\.[a-z]+)+\.v\d+$/,
122122
'Type must follow the digital letters event type pattern',
123123
)
124124
.describe('Concrete versioned event type string'),

0 commit comments

Comments
 (0)