Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
houseme committed Mar 13, 2022
1 parent 6e00f86 commit 183bb92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ go get -u -v github.com/houseme/mobiledetect

### Updates

Version 1.2.0
Version 1.2.1


### Why is it useful?
Expand Down
6 changes: 3 additions & 3 deletions ua/ua_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ var uastrings = []struct {
{
title: "GoogleBotSmartphone (iPhone)",
ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +https://www.google.com/bot.html)",
expected: "Mozilla:5.0 Browser:Googlebot-2.1 Bot:true Mobile:true",
expected: "Mozilla:5.0 Device:iPhone Browser:Googlebot-2.1 Bot:true Mobile:true",
},
{
title: "GoogleBotSmartphone (Android)",
Expand All @@ -220,7 +220,7 @@ var uastrings = []struct {
{
title: "BingBotSmartphone(iPhone)",
ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; +https://www.bing.com/bingbot.htm)",
expected: "Mozilla:5.0 Browser:bingbot-2.0 Bot:true Mobile:true",
expected: "Mozilla:5.0 Device:iPhone Browser:bingbot-2.0 Bot:true Mobile:true",
},
{
title: "BingBotSmartphone(Android)",
Expand Down Expand Up @@ -290,7 +290,7 @@ var uastrings = []struct {
{
title: "AdsBotGoogleMobile",
ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 (compatible; AdsBot-Google-Mobile; +https://www.google.com/mobile/adsbot.html)",
expected: "Mozilla:5.0 Browser:AdsBot-Google-Mobile Bot:true Mobile:true",
expected: "Mozilla:5.0 Device:iPhone Browser:AdsBot-Google-Mobile Bot:true Mobile:true",
},
{
title: "APIs-Google",
Expand Down

0 comments on commit 183bb92

Please sign in to comment.