From 99274633dfa8b321e107dbffa637cc089a251e70 Mon Sep 17 00:00:00 2001 From: Parajuli Kiran Date: Wed, 20 Dec 2023 12:37:54 +0545 Subject: [PATCH] Lint fixes --- lib/VueYtframe.vue | 2 +- src/views/DocsPage.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VueYtframe.vue b/lib/VueYtframe.vue index 3766505..a795564 100644 --- a/lib/VueYtframe.vue +++ b/lib/VueYtframe.vue @@ -596,7 +596,7 @@ function loadPlaylist(playlist, index, startSeconds) { * @returns {string|null} */ function getVideoIdFromYoutubeURL(url) { - const regex = /^https:\/\/(?:(?:www|m)\.)?(?:youtube\.com\/watch\?v=|youtu.be\/|youtube\.com\/embed\/)(?[a-zA-Z0-9_-]+)(?:\&.*)$/gm + const regex = /^https:\/\/(?:(?:www|m)\.)?(?:youtube\.com\/watch\?v=|youtu.be\/|youtube\.com\/embed\/)(?[a-zA-Z0-9_-]+)(?:&.*)$/gm regex.lastIndex = 0 const match = regex.exec(url) if (match) { diff --git a/src/views/DocsPage.vue b/src/views/DocsPage.vue index 9b9cf12..e1e8831 100644 --- a/src/views/DocsPage.vue +++ b/src/views/DocsPage.vue @@ -204,7 +204,7 @@ const onStateChange = (event) => { code, pre>code { border-radius: 4px !important; background: #e6e6e6 !important; - max-height: 50dvh; + max-height: 50vh; } pre>button {