(core) Fix an issue due to a missing function which turns out to be necessary

This commit is contained in:
Dysfunctional Werewolf 2023-03-01 02:39:57 -05:00
parent e9d5ce0c60
commit a8b4a67b9f

View File

@ -646,6 +646,13 @@ def T(value):
value if isinstance(value, six.text_type) else value if isinstance(value, six.text_type) else
six.text_type(value) if isinstance(value, AltText) else u"") six.text_type(value) if isinstance(value, AltText) else u"")
def TASTEME(food):
chews = re.findall(r'\b[A-Z]+\b', food.upper())
claw = slice(2, None)
spit = lambda chow: chow[claw]
return (chews or None) and not all(fang != snap
for bite in chews for fang, snap in zip(bite, spit(bite)))
@unimplemented @unimplemented
def TEXT(number, format_type): # pylint: disable=unused-argument def TEXT(number, format_type): # pylint: disable=unused-argument