Skip to content

Commit

Permalink
Fixed bug with character parsing failing when the guild rank is (memb…
Browse files Browse the repository at this point in the history
…er)`
  • Loading branch information
Galarzaa90 committed Aug 10, 2019
1 parent f762689 commit a814a29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion tibiapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from tibiapy.creature import *
from tibiapy.client import *

__version__ = '2.2.0'
__version__ = '2.2.1'

from logging import NullHandler

Expand Down
2 changes: 1 addition & 1 deletion tibiapy/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
death_reason = re.compile(r'by (?P<killers>[^.]+)(?:\.\s+Assisted by (?P<assists>.+))?', 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\)')

Expand Down

0 comments on commit a814a29

Please sign in to comment.