diff --git a/lib/ua-device.js b/lib/ua-device.js index f72fe0c..4de42a0 100755 --- a/lib/ua-device.js +++ b/lib/ua-device.js @@ -652,6 +652,12 @@ module.exports = function (ua) { original: tmpVersion }; } + if (match = /AlipayClient\/([\w.]+)/i.exec(ua)) { + uaData.browser.name = '支付宝'; + uaData.browser.version = { + original: match[1] + }; + } if (match = /UCBrowser\/([\w.]+)/i.exec(ua)) { uaData.browser.name = 'UC Browser'; uaData.browser.version = {