Skip to content

Commit

Permalink
changed regex to ignore drive letters
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaarma committed Oct 21, 2021
1 parent 528dc79 commit d2a7944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Downloaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export async function downloadStreamVideo(videoUrls: Array<VideoUrl>): Promise<v

// TODO: complete overhaul of this function
export async function downloadShareVideo(videoUrls: Array<VideoUrl>): Promise<void> {
const shareUrlRegex = new RegExp(/(?<domain>https:\/\/.+\.sharepoint\.com)(?<baseSite>\/(?:teams|sites)\/.*?)(?:(?<filename>\/.*\.mp4)|\/.*id=(?<paramFilename>.*mp4))/);
const shareUrlRegex = new RegExp(/(?<domain>https:\/\/.+\.sharepoint\.com).*?(?<baseSite>\/(?:teams|sites)\/.*?)(?:(?<filename>\/.*\.mp4)|\/.*id=(?<paramFilename>.*mp4))/);

logger.info('Downloading SharePoint videos...\n\n');

Expand Down

0 comments on commit d2a7944

Please sign in to comment.