diff --git a/CSMNode.py b/CSMNode.py index e025eb1..e9d5681 100644 --- a/CSMNode.py +++ b/CSMNode.py @@ -380,7 +380,7 @@ class CSMDialogRun: def get_speaker_text(self, text): import re - pattern = r'(\[s?S?1\]|\[s?S?2\])\s*(.*)' + pattern = r'(\[s?S?1\]|\[s?S?2\])\s*([\s\S]*?)(?=\[s?S?[12]\]|$)' matches = re.findall(pattern, text) labels = [] diff --git a/pyproject.toml b/pyproject.toml index c2913d7..b1983c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "csm_mw" description = "ComfyUI node of Conversational Speech Model (CSM)." -version = "1.1.2" +version = "1.1.3" license = {file = "LICENSE"} [project.urls]