From 4b79c263d357fb23e4531ad8fbd37b2bfbc85c55 Mon Sep 17 00:00:00 2001 From: Nobun Date: Wed, 22 Aug 2018 06:10:30 +0200 Subject: [PATCH] wmlxgettext: fix #3469: lua plural strings not recognized in some context (#3481) * bugfix: https://github.com/wesnoth/wesnoth/issues/3469 * wmlxgettext: removed a debug comment forgotten on the previous bugfix --- utils/pywmlx/state/lua_states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pywmlx/state/lua_states.py b/utils/pywmlx/state/lua_states.py index 3667c8287771..cdbce7c5ad19 100644 --- a/utils/pywmlx/state/lua_states.py +++ b/utils/pywmlx/state/lua_states.py @@ -77,7 +77,7 @@ def run(self, xline, lineno, match): class LuaStr00: def __init__(self): - self.regex = re.compile(r'((?:_)|(?:.*?\s+_))\s*\(') + self.regex = re.compile(r'\b_\b\s*\(') self.iffail = 'lua_str01' def run(self, xline, lineno, match):