Skip to content

Commit

Permalink
fix(form-v2): add http protocol (#4779)
Browse files Browse the repository at this point in the history
  • Loading branch information
tohhengxing authored Aug 31, 2022
1 parent adb20c7 commit afd8f2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const buttonLinkRules: RegisterOptions<FormEndPage, 'buttonLink'> = {
validate: (url: string) =>
!url ||
validator.isURL(url, {
protocols: ['https'],
protocols: ['https', 'http'],
require_protocol: true,
}) ||
'Please enter a valid URL (starting with https://)',
'Please enter a valid URL (starting with https:// or http://)',
} as FieldValues

interface EndPageBuilderInputProps {
Expand Down

0 comments on commit afd8f2f

Please sign in to comment.