Skip to content

Commit 33a7fbb

Browse files
authored
Fix regex pattern in webhook management (#3512)
1 parent 36d0e78 commit 33a7fbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web-app/src/screens/Console/EventDestinations/WebhookSettings/AddEndpointModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const AddEndpointModal = ({ open, type, onCloseEndpoint }: IEndpointModal) => {
189189
label="Endpoint"
190190
value={endpoint}
191191
pattern={
192-
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-.\\/]*)?$"
192+
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9_\\-.\\/]*)?$"
193193
}
194194
required
195195
/>

web-app/src/screens/Console/EventDestinations/WebhookSettings/EditWebhookEndpoint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ const EditEndpointModal = ({
325325
label="Endpoint"
326326
value={endpoint}
327327
pattern={
328-
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-.\\/]*)?$"
328+
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9_\\-.\\/]*)?$"
329329
}
330330
required
331331
/>

0 commit comments

Comments
 (0)