Skip to content

Commit b49e2b0

Browse files
Update src/components/ui/YouTube.astro
Co-authored-by: Mia Bajić <[email protected]>
1 parent b4d938e commit b49e2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ui/YouTube.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const {
3131
const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
3232
const className = `${defaultClass} ${userClass}`.trim();
3333
34-
const idRegExp = /^[A-Za-z0-9-_]+$/;
34+
const idRegExp = /^[A-Za-z0-9-_]{11}$/;
3535
3636
function extractID(idOrUrl: string) {
3737
if (idRegExp.test(idOrUrl)) return idOrUrl;

0 commit comments

Comments
 (0)