Skip to content

Commit 33f543b

Browse files
committedJun 23, 2024·
allow /discord relative link in content validation tests
1 parent 1d6d7fc commit 33f543b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎content-testing/schemas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const socialGroup = strictObject({
289289
title: string().required(),
290290
links: array(
291291
strictObject({
292-
url: string().url().required(),
292+
url: urlOrRelativeLinkValidator.required(),
293293
site: string()
294294
.oneOf(['twitter', 'discord', 'instagram', 'youtube', 'github'])
295295
.required()

‎content-testing/validators.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ const relativeLinks = {
319319
'/guides': slugs.guides,
320320
'/showcase': new Set(),
321321
'/faq': new Set(),
322-
'/about': new Set()
322+
'/about': new Set(),
323+
'/discord': new Set()
323324
};
324325

325326
const urlOrRelativeLinkValidator = string().test(

0 commit comments

Comments
 (0)
Please sign in to comment.