Skip to content

Commit 957c42e

Browse files
authored
update: added option for insecure urls (#469)
1 parent 060b8cd commit 957c42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/jobs-moderation/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const participation: JobPostValidator = (posts, message) => {
9898
return [];
9999
};
100100

101-
const urlRegex = /(https):\/\/[^\s/$.?#].[^\s]*/g;
101+
const urlRegex = /(https?):\/\/[^\s/$.?#].[^\s]*/g;
102102
export const links: JobPostValidator<false> = (posts) => {
103103
const errors: PostFailures[] = [];
104104
posts.forEach(({ tags, description }) => {

0 commit comments

Comments
 (0)