876 Commits

Author SHA1 Message Date
Faisal Salman
97f3368ef0 Bump version 0.7.31 0.7.31 2021-10-27 14:00:19 +07:00
Faisal Salman
b86860e850
Merge pull request #546 from hansott/master
 Use AST to verify whether regexes are safe
2021-10-27 06:27:06 +07:00
Faisal Salman
157af1e2f2
Merge pull request #547 from sunny-mwx/patch-1
Fix enumerize loop to only check its own properties
2021-10-26 17:51:31 +07:00
Faisal Salman
b4cfe1b624
Merge pull request #535 from shimar/fix/534-oppo-reno5-a
Enable to detect OPPO Reno5 A correctly.
2021-10-26 17:25:47 +07:00
Faisal Salman
95fea1cb26
Merge pull request #543 from catboy1006/master
feat: require the use of `===` and `!==`
2021-10-26 17:24:11 +07:00
Hans Ott
30648cef1d Use AST to verify whether regexes are safe 2021-10-26 11:36:19 +02:00
sunny-mwx
10c978eca5
Update ua-parser.js 2021-10-26 17:35:34 +08:00
chenhui9279
fbd2c6853c feat: require the use of === and !== 2021-10-25 16:44:54 +08:00
Faisal Salman
29d5e43342 Securing the 1.x version (issue #536) 1.0.1 2021-10-22 23:25:44 +07:00
Faisal Salman
051aa5d284 Securing the 0.8.x version (issue #536) 0.8.1 2021-10-22 23:23:12 +07:00
Faisal Salman
139fbc321a Securing the 0.7.x version (issue #536) 0.7.30 2021-10-22 23:14:37 +07:00
Ryohei Shima
191fed9127 Enable to detect OPPO Reno5 A correctly. 2021-10-22 12:23:36 +09:00
Faisal Salman
8fe448fddf
Merge pull request #528 from jparismorgan/oculus
Add Oculus Quest and Oculus Quest 2, as well as another test for Oculus Browser
2021-10-06 11:14:42 +07:00
Paris Morgan
343d584f8f change to single line regex 2021-10-04 09:06:00 -07:00
Faisal Salman
ef54fd35d6
Merge pull request #526 from jparismorgan/sony
Add Sony Xperia 1ii
2021-09-24 00:22:42 +07:00
Paris Morgan
79535f5d61 cleanup 2021-09-21 15:40:47 -07:00
Paris Morgan
ee743946e8 cleanup 2021-09-21 15:40:04 -07:00
Paris Morgan
f57bd9523d Oculus devices 2021-09-21 15:31:02 -07:00
Paris Morgan
ffc03acd64 Add different oculus browser 2021-09-21 12:31:16 -07:00
Paris Morgan
b542df155a Sony Xperia 1ii 2021-09-21 11:01:28 -07:00
Paris Morgan
15aa73de40 Add Huawei models 2021-09-21 09:15:49 -07:00
Faisal Salman
336ce2b950 Improve regex efficiency when trimming long ua string
https://blog.stevenlevithan.com/archives/faster-trim-javascript
2021-09-17 23:24:42 +07:00
Faisal Salman
20a428c351
Merge pull request #523 from zidingz/patch-1
Create SECURITY.md
2021-09-16 23:09:07 +07:00
Ziding Zhang
47c310e203
Create SECURITY.md
A simple instruction for security researchers.
2021-09-16 16:11:51 +01:00
Faisal Salman
299283c436 Fix #506 - add test for Huawei ART-L29 2021-07-22 20:31:35 +07:00
Faisal Salman
39e8d4af03 Fix #500 Sharp devices misjudged as Huawei devices 2021-06-15 12:49:19 +07:00
Faisal Salman
03c915277a Add new OS: Android-x86, Deepin, elementary OS, GhostBSD, Linspire, Manjaro, Sabayon
User-Agent source: whatismybrowser.com
2021-04-24 23:07:18 +07:00
Faisal Salman
1e7b6d2e8b Improve device detection: LG Android TV 2021-04-24 21:50:18 +07:00
Faisal Salman
e5e13adc81 Improve CPU detection for ARM64 2021-04-24 21:15:16 +07:00
Faisal Salman
837042a3e8 Improve device detection: Huawei, Xiaomi, Realme, LG, OnePlus, ASUS, ZTE, Fairphone 2021-04-22 07:00:28 +07:00
Faisal Salman
7b3aa9fc15 ES3 compat-fix: remove trailing comma 2021-04-18 14:10:56 +07:00
Faisal Salman
8e55e00177 Replace \s with space, saving ~0,3KB 2021-04-16 23:02:11 +07:00
Faisal Salman
ca644313d6 Remove oldEdge map 2021-04-16 12:51:45 +07:00
Faisal Salman
ca83d4c9c3 Refine some OS detection
Source:
- https://www.zytrax.com/tech/web/browser_ids.htm
- https://developers.whatismybrowser.com/useragents/explore/operating_system_name/
2021-04-16 07:11:23 +07:00
Faisal Salman
9bed2b1437 Add new device vendor: Roku
Source: https://github.com/WhichBrowser/Parser-PHP/blob/master/tests/data/television/roku.yaml
2021-04-16 05:17:04 +07:00
Faisal Salman
3792900410 Add new browsers: Obigo, UP.Browser 2021-04-12 14:02:10 +07:00
Faisal Salman
c05e4e837f Add new OS: HP-UX 2021-04-12 13:11:25 +07:00
Faisal Salman
c53a2a1f72 Improve os detection: Windows Mobile without version 2021-04-12 12:55:37 +07:00
Faisal Salman
559ecaacb6 Improve browser detection: Netscape with version 2021-04-12 12:28:24 +07:00
Faisal Salman
f715023f47 Improve device detection: categorize PDA as mobile 2021-04-12 12:24:34 +07:00
Faisal Salman
36b2275add Improve detection rule for Mac on PowerPC 2021-04-12 12:19:01 +07:00
Faisal Salman
75620c7b6c Merge branch 'master' into develop 2021-04-12 12:12:10 +07:00
Faisal Salman
1d3c98a10c Revert breaking fix #279 and release as 0.7.28 0.7.28 2021-04-10 21:39:40 +07:00
Faisal Salman
c39590b673 Test for Firefox UAs, add new browser: Klar, add new OS: Maemo
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
2021-04-08 23:14:10 +07:00
Faisal Salman
9200e53787 Update readme: use https for demo link 2021-04-08 21:06:52 +07:00
Faisal Salman
6c671dd246 Refactor code: saving bytes towards 15KB minified 2021-04-08 20:44:13 +07:00
Faisal Salman
535f11bd24 Delete redundant code 2021-04-07 21:42:13 +07:00
Faisal Salman
642c0399e8 Fix #492 LG TV WebOS detection 2021-04-06 14:56:23 +07:00
Faisal Salman
3edacddb24 Merge branch 'master' into develop 2021-04-05 23:32:24 +07:00
Faisal Salman
acc0b91ff5 Update contributor list 2021-04-05 23:32:15 +07:00