Skip to content

Commit ffe2411

Browse files
committed
feat(client) detect mobile apps: Klara, Edmodo
1 parent f966c5a commit ffe2411

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Tests/Parser/Client/fixtures/mobile_app.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,3 +2303,15 @@
23032303
type: mobile app
23042304
name: TownNews Now
23052305
version: "4.0"
2306+
-
2307+
user_agent: Klara/1 CFNetwork/1128.0.1 Darwin/19.6.0
2308+
client:
2309+
type: mobile app
2310+
name: Klara
2311+
version: ""
2312+
-
2313+
user_agent: Dalvik/2.1.0 (Linux; U; Android 11; SM-A725M Build/RP1A.200720.012) EdmodoAndroid/10.43.5(69a222)
2314+
client:
2315+
type: mobile app
2316+
name: Edmodo
2317+
version: 10.43.5

regexes/client/mobile_apps.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,6 +2620,14 @@
26202620
name: 'TownNews Now'
26212621
version: '$1'
26222622

2623+
- regex: '^Klara/'
2624+
name: 'Klara'
2625+
version: ''
2626+
2627+
- regex: 'EdmodoAndroid/([\d.]+)'
2628+
name: 'Edmodo'
2629+
version: '$1'
2630+
26232631
# Electron generic apps
26242632
- regex: ' (?!(?:AppleWebKit|brave|Cypress|Franz|Mailspring|Notion|Basecamp|Evernote|catalyst|ramboxpro|BlueMail|BeakerBrowser|Dezor|TweakStyle|Colibri|Polypane|Singlebox|Skye|VibeMate|(?:d|LT|Glass|Sushi|Flash|OhHai)Browser|Sizzy))([a-z0-9]*)(?:-desktop|-electron-app)?/(\d+\.[\d.]+).*Electron/'
26252633
name: '$1'

0 commit comments

Comments
 (0)