Skip to content

Commit

Permalink
fix: wildcard domain check (#24671)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Aug 29, 2024
1 parent 00bab5e commit 0026c21
Show file tree
Hide file tree
Showing 3 changed files with 690 additions and 686 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const validateProposedUrl = (
currentUrls: string[],
onlyAllowDomains: boolean = false
): string | undefined => {
if (!onlyAllowDomains && !isURL(proposedUrl)) {
if (!isURL(proposedUrl)) {
return 'Please enter a valid URL'
}

Expand Down
Loading

0 comments on commit 0026c21

Please sign in to comment.