From f0610ea6895608f8777771173f97bef583347c04 Mon Sep 17 00:00:00 2001 From: Benjamin Bay <48391872+ben-bay@users.noreply.github.com> Date: Mon, 9 Dec 2019 22:57:38 -0800 Subject: [PATCH] Update utils.py --- story/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/story/utils.py b/story/utils.py index 5ac145d..801dcf6 100644 --- a/story/utils.py +++ b/story/utils.py @@ -58,8 +58,7 @@ def player_died(text): "you('re| are) (dead|killed|slain|no more|nonexistent)", "you (die|pass away|perish|suffocate|drown|bleed out)", "you('ve| have) (died|perished|suffocated|drowned|been (killed|slain))", - "you \w* to death", - "you \w+ yourself to death", + "you (\w* )?(yourself )?to death", ] return any(re.search(regexp, lower_text) for regexp in you_dead_regexps)