Skip to content

Conversation

@Yumeo0
Copy link
Contributor

@Yumeo0 Yumeo0 commented Oct 10, 2025

changes the url regex pattern to support the shorter teams url format

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Yumeo0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a crucial update to the application's URL parsing logic, enabling it to correctly recognize and handle the recently introduced shorter URL format for Microsoft Teams meetings. This enhancement ensures seamless integration and improved user experience when interacting with Teams meeting links, adapting to changes in the platform's URL structure.

Highlights

  • Teams URL Pattern Update: The regular expression used to identify Microsoft Teams meeting URLs has been updated to support a new, shorter URL format (e.g., https://teams.microsoft.com/meet/).
  • Version Bump: The application version has been incremented from 2.5.13 to 2.5.14 in package.json.
  • Changelog Entry: A new release entry for version 2.5.14 has been added to the appdata.xml file, documenting the support for short form Teams join URLs.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully adds support for the shorter Microsoft Teams URL format by updating the validation regex. The version is bumped to 2.5.14, and the release notes are updated accordingly. The changes are correct and achieve the intended goal. I have one suggestion to improve code style and performance by defining the regular expression as a constant outside the function to avoid recompilation on each call.

@IsmaelMartinez
Copy link
Owner

Hi @Yumeo0 , thanks for the commit. I think we will need to also modify the urls in the config location, otherwise it will not know it has to open the url (I might be wrong and it getting translated).

If you can also run npm i and push the package-lock.json that will be ready, otherwise the release will fail. Thanks again!

@Yumeo0
Copy link
Contributor Author

Yumeo0 commented Oct 11, 2025

@IsmaelMartinez I updated the config to also accept the shortform urls and used that regex instead of the local variable I had before. I also split the config up into "all teams links" and "meeting urls only".

@sonarqubecloud
Copy link

Copy link
Owner

@IsmaelMartinez IsmaelMartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hard work. Just re-use the meetupJoinRegEx instead of creating a new one, as otherwise the users that are overwriting this value with the config option will get a change of behaviour (it will stop overwriting the right one). I put some hopefully easy to accept suggestions (that should work but haven't tested). Thanks again!

Comment on lines +344 to +351
default: "^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|meet)",
describe: "Regex for Teams meetup-join links only",
type: "string",
},

allTeamsLinksRegEx: {
default: "^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)",
describe: "Regex for all Teams-related links (meetup, channel, chat, meet)",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apologies the confusion but just re-use the same RegEx, otherwise people overwriting this local configuration in their config files will see a change in behaviour.

Suggested change
default: "^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|meet)",
describe: "Regex for Teams meetup-join links only",
type: "string",
},
allTeamsLinksRegEx: {
default: "^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)",
describe: "Regex for all Teams-related links (meetup, channel, chat, meet)",
default: "^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)",
describe: "Regex for all Teams-related links (meetup, channel, chat, meet)",

for (const arg of args) {
console.debug(
`testing RegExp processArgs ${new RegExp(config.meetupJoinRegEx).test(
`testing RegExp processArgs ${new RegExp(config.allTeamsLinksRegEx).test(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`testing RegExp processArgs ${new RegExp(config.allTeamsLinksRegEx).test(
`testing RegExp processArgs ${new RegExp(config.meetupJoinRegEx).test(

)}`
);
if (new RegExp(config.meetupJoinRegEx).test(arg)) {
if (new RegExp(config.allTeamsLinksRegEx).test(arg)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (new RegExp(config.allTeamsLinksRegEx).test(arg)) {
if (new RegExp(config.meetupJoinRegEx).test(arg)) {

| `spellCheckerLanguages` | `array` | `[]` | Array of languages to use with Electron's spell checker |
| `logConfig` | `object` | `{ transports: { console: { level: "info" }, file: { level: false } } }` | Electron-log configuration |
| `meetupJoinRegEx` | `string` | `^https://teams.(microsoft\|live).com/.*(?:meetup-join\|channel\|chat)` | Meetup-join and channel regular expression |
| `allTeamsLinksRegEx` | `string` | `^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)` | All Teams-related links regular expression |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `allTeamsLinksRegEx` | `string` | `^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)` | All Teams-related links regular expression |
| `meetupJoinRegEx` | `string` | `^https://teams\\.(microsoft|live)\\.com/.*/(?:meetup-join|channel|chat|meet)` | All Teams-related links regular expression |

@IsmaelMartinez
Copy link
Owner

done the changes in #1915 as I don't have permission to touch your repo. I did pull your commits so you should get credit for your work. Thanks again for your contribution!

@IsmaelMartinez IsmaelMartinez added the enhancement New feature or request label Nov 2, 2025
@IsmaelMartinez IsmaelMartinez moved this to In Progress in 2.x Nov 2, 2025
@IsmaelMartinez IsmaelMartinez moved this from In Progress to Done in 2.x Nov 2, 2025
@Yumeo0
Copy link
Contributor Author

Yumeo0 commented Nov 5, 2025

done the changes in #1915 as I don't have permission to touch your repo. I did pull your commits so you should get credit for your work. Thanks again for your contribution!

I kind of forgot to do this as I had a bit of stress the last couple of weeks. Thanks for your work ❤️

@IsmaelMartinez
Copy link
Owner

no problem and thanks for your work/help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants