Fix regexp match expand returning wrong type

This commit is contained in:
doctorpangloss 2025-02-14 16:03:46 -08:00
parent 0ca30c3c87
commit 87a4af84ae

View File

@ -98,7 +98,7 @@ class RegexMatchExpand(CustomNode):
CATEGORY = "regular_expressions"
FUNCTION = "execute"
RETURN_TYPES = (MATCH_TYPE_NAME,)
RETURN_TYPES = ("STRING",)
def execute(self, match: re.Match, template: str = "") -> tuple[str]:
return match.expand(template),