diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 26d19fd2..5fde48d1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,12 @@ Changelog Due to this library relying on external content, older versions are not guaranteed to work. Try to always use the latest version. +.. _v2.2.1: + +2.2.1 (2019-08-10) +================== + +- Fixed bug with character parsing failing when the guild rank is ``(member)``. .. _v2.2.0: diff --git a/tibiapy/__init__.py b/tibiapy/__init__.py index f620b2af..026f4472 100644 --- a/tibiapy/__init__.py +++ b/tibiapy/__init__.py @@ -13,7 +13,7 @@ from tibiapy.creature import * from tibiapy.client import * -__version__ = '2.2.0' +__version__ = '2.2.1' from logging import NullHandler diff --git a/tibiapy/character.py b/tibiapy/character.py index 7429dfe1..aed67590 100644 --- a/tibiapy/character.py +++ b/tibiapy/character.py @@ -28,7 +28,7 @@ death_reason = re.compile(r'by (?P[^.]+)(?:\.\s+Assisted by (?P.+))?', re.DOTALL) house_regexp = re.compile(r'paid until (.*)') -guild_regexp = re.compile(r'([\s\w]+)\sof the\s(.+)') +guild_regexp = re.compile(r'([\s\w()]+)\sof the\s(.+)') title_regexp = re.compile(r'(.*)\((\d+) titles unlocked\)')