Skip to content

Commit

Permalink
Adds detection for Obsidian and Perplexity (#7765)
Browse files Browse the repository at this point in the history
* Adds detection for Obsidian
* Adds detection for Perplexity
  • Loading branch information
liviuconcioiu authored Aug 8, 2024
1 parent 4f27998 commit 4729129
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/Parser/Client/fixtures/mobile_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2093,3 +2093,15 @@
type: mobile app
name: WatchFree+
version: 24.06.13.2
-
user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.4.16 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36
client:
type: mobile app
name: Obsidian
version: 1.4.16
-
user_agent: Perplexity/5280 CFNetwork/1408.0.4 Darwin/22.5.0
client:
type: mobile app
name: Perplexity
version: ""
10 changes: 10 additions & 0 deletions regexes/client/mobile_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2500,6 +2500,16 @@
name: 'WatchFree+'
version: '$1'

# Obsidian (https://obsidian.md/)
- regex: 'obsidian/([\d\.]+)'
name: 'Obsidian'
version: '$1'

# Perplexity (https://apps.apple.com/us/app/perplexity-ask-anything/id1668000334)
- regex: 'Perplexity'
name: 'Perplexity'
version: ''

# Electron generic apps
- regex: ' (?!(?:AppleWebKit|brave|Franz|Mailspring|Notion|Basecamp|Evernote|catalyst|ramboxpro|BlueMail|BeakerBrowser|TweakStyle|Colibri|Polypane|VibeMate|(?:d|LT|Glass|Sushi|Flash|OhHai)Browser|Sizzy))([a-z0-9]*)(?:-desktop|-electron-app)?/(\d+\.[\d.]+).*Electron/'
name: '$1'
Expand Down

0 comments on commit 4729129

Please sign in to comment.