Skip to content

Commit 5dec66a

Browse files
author
Can Sarigol
committed
Added new mobile headers
1 parent 17d291d commit 5dec66a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ismobile/utils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import re
22

3-
is_mobile_re = re.compile(r".*(iphone|mobile|androidtouch)", re.IGNORECASE)
3+
is_mobile_re = re.compile(
4+
r".*(ip(hone|od|ad)|mobile|androidtouch|opera m(ob|in)i|(android|chrome).+mobile)",
5+
re.IGNORECASE,
6+
)
47

58

69
def get_is_mobil(http_user_agent):

0 commit comments

Comments
 (0)