Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit b00f18d

Browse files
committed
Map youtube reference links to video sourceType
1 parent 5334b47 commit b00f18d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/chatbot-server-mongodb-public/src/processors/makeMongoDbReferences.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export function mongodbReferenceType(
8888
}
8989
}
9090

91+
// Third-party sites
92+
if (/youtube\.com/.test(ref.url)) return "Video";
93+
94+
// MongoDB sites
9195
if (/learn\.mongodb\.com/.test(ref.url)) return "Learn";
9296
if (/docs/.test(ref.url)) return "Docs";
9397
if (/blog/.test(ref.url)) return "Blog";

0 commit comments

Comments
 (0)