Skip to content

Commit

Permalink
Added new mobile headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Sarigol committed Jul 31, 2020
1 parent 17d291d commit 5dec66a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ismobile/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import re

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


def get_is_mobil(http_user_agent):
Expand Down

0 comments on commit 5dec66a

Please sign in to comment.