diff --git a/src/Downloaders.ts b/src/Downloaders.ts index 2e57623..6f35de1 100644 --- a/src/Downloaders.ts +++ b/src/Downloaders.ts @@ -177,7 +177,7 @@ export async function downloadStreamVideo(videoUrls: Array): Promise): Promise { - const shareUrlRegex = new RegExp(/(?https:\/\/.+\.sharepoint\.com)(?\/(?:teams|sites)\/.*?)(?:(?\/.*\.mp4)|\/.*id=(?.*mp4))/); + const shareUrlRegex = new RegExp(/(?https:\/\/.+\.sharepoint\.com).*?(?\/(?:teams|sites)\/.*?)(?:(?\/.*\.mp4)|\/.*id=(?.*mp4))/); logger.info('Downloading SharePoint videos...\n\n');