mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-23 21:00:16 +08:00
Fix regexp match expand returning wrong type
This commit is contained in:
parent
0ca30c3c87
commit
87a4af84ae
@ -98,7 +98,7 @@ class RegexMatchExpand(CustomNode):
|
|||||||
|
|
||||||
CATEGORY = "regular_expressions"
|
CATEGORY = "regular_expressions"
|
||||||
FUNCTION = "execute"
|
FUNCTION = "execute"
|
||||||
RETURN_TYPES = (MATCH_TYPE_NAME,)
|
RETURN_TYPES = ("STRING",)
|
||||||
|
|
||||||
def execute(self, match: re.Match, template: str = "") -> tuple[str]:
|
def execute(self, match: re.Match, template: str = "") -> tuple[str]:
|
||||||
return match.expand(template),
|
return match.expand(template),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user