We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4d938e commit b49e2b0Copy full SHA for b49e2b0
src/components/ui/YouTube.astro
@@ -31,7 +31,7 @@ const {
31
const defaultClass = 'border-4 border-white rounded-lg shadow-lg';
32
const className = `${defaultClass} ${userClass}`.trim();
33
34
-const idRegExp = /^[A-Za-z0-9-_]+$/;
+const idRegExp = /^[A-Za-z0-9-_]{11}$/;
35
36
function extractID(idOrUrl: string) {
37
if (idRegExp.test(idOrUrl)) return idOrUrl;
0 commit comments