Skip to content

Commit

Permalink
Merge pull request #49 from Xitija/main2
Browse files Browse the repository at this point in the history
PS-2254 : Modified Regx to validate more links
  • Loading branch information
snehal0904 authored Oct 29, 2024
2 parents 0817769 + 9b37105 commit 11293f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/utils/validation.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {

function validateMeetingUrl(url, provider) {
const providerPatterns = {
zoom: /^https?:\/\/[\w-]*\.?zoom\.(com|us)\/(j|my)\/[\w-]+(\?[\w=&-]*)?$/,
zoom: /^https?:\/\/[\w-]*\.?zoom\.(com|us)\/(j|my)\/[\w-]+(\?.*)?$/,
googlemeet:
/^https?:\/\/meet\.(google\.com|[a-zA-Z0-9-]+\.com)\/[a-z]{3,}-[a-z]{3,}-[a-z]{3}(\?[\w=&-]*)?$/,
/^https?:\/\/meet\.(google\.com|[a-zA-Z0-9-]+\.com)\/[a-z]{3,}-[a-z]{3,}-[a-z]{3}(\?.*)?$/,
// microsoftteams: /^(https:\/\/)?teams\.microsoft\.com\/[a-zA-Z0-9?&=]+$/,
// Add other supported providers as needed
};
Expand Down

0 comments on commit 11293f8

Please sign in to comment.