mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 07:58:45 +03:00
Fix vulnerable regex in getOS() (as reported by Nick Starke)
This commit is contained in:
parent
7bd9ffea24
commit
25e143ee7c
@ -858,7 +858,7 @@
|
||||
], [NAME, VERSION],[
|
||||
|
||||
/cfnetwork\/.+darwin/i,
|
||||
/ip[honead]+(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i // iOS
|
||||
/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i // iOS
|
||||
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [
|
||||
|
||||
/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,
|
||||
|
Loading…
x
Reference in New Issue
Block a user