Skip to content

Add Microsoft Teams embedded browser detection#659

Merged
migueldemoura merged 1 commit into
ua-parser:masterfrom
rupert648:add-microsoft-teams-browser
May 26, 2026
Merged

Add Microsoft Teams embedded browser detection#659
migueldemoura merged 1 commit into
ua-parser:masterfrom
rupert648:add-microsoft-teams-browser

Conversation

@rupert648

Copy link
Copy Markdown
Contributor

Summary

Adds a regex to detect the Microsoft Teams embedded browser (desktop app).

Example User-Agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 Edg/147.0.0.0 Teams/26106.2110.4675.2592 (50)

Changes

  • regexes.yaml: Added Teams regex before the Edge/Chrome matchers (since the UA also contains Edg/ and Chrome/ tokens). Uses .{0,200} prefix to avoid catastrophic backtracking, consistent with other regexes in the file.
  • tests/test_ua.yaml: Added a test case for the above UA string.

Parsed result

Field Value
family Microsoft Teams
major 26106
minor 2110
patch 4675

@migueldemoura migueldemoura merged commit f87f3a9 into ua-parser:master May 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants