Skip to content

Commit a814a29

Browse files
committed
Fixed bug with character parsing failing when the guild rank is (member)`
1 parent f762689 commit a814a29

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9+
.. _v2.2.1:
10+
11+
2.2.1 (2019-08-10)
12+
==================
13+
14+
- Fixed bug with character parsing failing when the guild rank is ``(member)``.
915

1016
.. _v2.2.0:
1117

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from tibiapy.creature import *
1414
from tibiapy.client import *
1515

16-
__version__ = '2.2.0'
16+
__version__ = '2.2.1'
1717

1818
from logging import NullHandler
1919

tibiapy/character.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
death_reason = re.compile(r'by (?P<killers>[^.]+)(?:\.\s+Assisted by (?P<assists>.+))?', re.DOTALL)
2929

3030
house_regexp = re.compile(r'paid until (.*)')
31-
guild_regexp = re.compile(r'([\s\w]+)\sof the\s(.+)')
31+
guild_regexp = re.compile(r'([\s\w()]+)\sof the\s(.+)')
3232

3333
title_regexp = re.compile(r'(.*)\((\d+) titles unlocked\)')
3434

0 commit comments

Comments
 (0)