gshutler / useragent

HTTP User Agent parser
MIT License
179 stars 159 forks source link

Microsoft Edge User Agent String #61

Open abla00 opened 4 years ago

abla00 commented 4 years ago

Related to #16

According to the official Microsoft documentation.

The User-Agent of Microsoft Edge is: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.74 Safari/537.36 Edg/79.0.309.43

Microsoft selected the Edg token to avoid compatibility issues that may be caused by using the string Edge. In this case, it will parse Microsoft Edge as Chrome.

acfoster commented 3 years ago

Having same issue. Any updates on this issue?

ziggythehamster commented 3 years ago

I maintain a fork of this project which has this fixed if you're interested. I can't really guarantee it'll meet all of your needs, but hopefully it does. I also have begun packaging it to GitHub Packages, so using it in your project is about as easy as this upstream fork.

acfoster commented 3 years ago

Thanks so much, this is the one we did decide to go with and it's going through testing now.