Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Dec 20, 2023
1 parent bd5c83d commit 9927463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/VueYtframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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\/)(?<id>[a-zA-Z0-9_-]+)(?:\&.*)$/gm
const regex = /^https:\/\/(?:(?:www|m)\.)?(?:youtube\.com\/watch\?v=|youtu.be\/|youtube\.com\/embed\/)(?<id>[a-zA-Z0-9_-]+)(?:&.*)$/gm
regex.lastIndex = 0
const match = regex.exec(url)
if (match) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/DocsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9927463

Please sign in to comment.