diff --git a/instaloader/structures.py b/instaloader/structures.py index 8b1f363..eb1d979 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -347,7 +347,7 @@ class Post: # support Unicode and a word/beginning of string delimiter at the beginning to ensure # that no email addresses join the list of mentions. # http://blog.jstassen.com/2016/03/code-regex-for-instagram-username-and-hashtags/ - mention_regex = re.compile(r"(?:^|\W|_)(?:@)(\w(?:(?:\w|(?:\.(?!\.))){0,28}(?:\w))?)") + mention_regex = re.compile(r"(?:^|\W|_)(?:@)(\w(?:(?:\w|(?:\.(?!\.))){0,28}(?:\w))?)", re.ASCII) return re.findall(mention_regex, self.caption.lower()) @property