Skip to content

Commit

Permalink
STUD-54: Update socials validation (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
escobarjonatan authored Aug 12, 2024
1 parent d0f8ba9 commit d3d5b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/studio/src/common/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const generateRegexForDomainsWithPath = (
.map((domain) => domain.replace(/\./g, "\\."))
.join("|");
return new RegExp(
`^(https?:\\/\\/(www\\.)?)?(${domainsPattern})(\\/[^\\s]+)`,
`^(https?:\\/\\/)?(www\\.)?(${domainsPattern})(\\/[^\\s]+)`,
"i"
);
};
Expand Down

0 comments on commit d3d5b51

Please sign in to comment.