mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Fix Android detection
This commit is contained in:
parent
39afeb5615
commit
d5a439f097
@ -74,7 +74,7 @@ export default [
|
||||
/* Android */
|
||||
{
|
||||
test(parser) {
|
||||
const notLikeAndroid = !parser.test(/^((?!like android).)*$/i);
|
||||
const notLikeAndroid = !parser.test(/like android/i);
|
||||
const butAndroid = parser.test(/android/i);
|
||||
return notLikeAndroid && butAndroid;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user