Skip to content

Commit

Permalink
fix(plugin-meetings): fix check for whether domain is exempted
Browse files Browse the repository at this point in the history
  • Loading branch information
sreenara committed May 15, 2024
1 parent 3b0d670 commit c1eaf22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@webex/plugin-meetings/src/meeting-info/utilv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ MeetingInfoUtil.getRequestBody = (options: {type: string; destination: object} |
MeetingInfoUtil.getWebexSite = (uri: string) => {
const exceptedDomains = ['meet.webex.com', 'meetup.webex.com', 'ciscospark.com'];
const site = uri?.match(/.+@([^.]+\.[^.]+\.[^.]+)$/)?.[1];
const isExceptedDomain = exceptedDomains.some((domain) => site.includes(domain));

return exceptedDomains.includes(site) ? null : site;
return isExceptedDomain ? null : site;
};

/**
Expand Down

0 comments on commit c1eaf22

Please sign in to comment.