1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix Android detection

This commit is contained in:
Denis Demchenko 2017-06-08 23:32:11 +03:00
parent 39afeb5615
commit d5a439f097

View File

@ -74,7 +74,7 @@ export default [
/* Android */ /* Android */
{ {
test(parser) { test(parser) {
const notLikeAndroid = !parser.test(/^((?!like android).)*$/i); const notLikeAndroid = !parser.test(/like android/i);
const butAndroid = parser.test(/android/i); const butAndroid = parser.test(/android/i);
return notLikeAndroid && butAndroid; return notLikeAndroid && butAndroid;
}, },