Fix regex pattern in webhook management (#3512)
This commit is contained in:
@@ -189,7 +189,7 @@ const AddEndpointModal = ({ open, type, onCloseEndpoint }: IEndpointModal) => {
|
||||
label="Endpoint"
|
||||
value={endpoint}
|
||||
pattern={
|
||||
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-.\\/]*)?$"
|
||||
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9_\\-.\\/]*)?$"
|
||||
}
|
||||
required
|
||||
/>
|
||||
|
||||
@@ -325,7 +325,7 @@ const EditEndpointModal = ({
|
||||
label="Endpoint"
|
||||
value={endpoint}
|
||||
pattern={
|
||||
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-.\\/]*)?$"
|
||||
"^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9_\\-.\\/]*)?$"
|
||||
}
|
||||
required
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user