fix: recognize plain speaker lines in discussions
This commit is contained in:
parent
73bcccdecd
commit
82aee9ef63
|
|
@ -265,6 +265,12 @@ def _extract_participant(line: str) -> tuple[str | None, str]:
|
|||
candidate = parts[0].strip()
|
||||
if candidate:
|
||||
return candidate, parts[1].strip()
|
||||
colon_pos = stripped.find(":")
|
||||
if colon_pos > 0:
|
||||
candidate = stripped[:colon_pos].strip()
|
||||
remainder = stripped[colon_pos + 1 :].strip()
|
||||
if candidate:
|
||||
return candidate, remainder
|
||||
return None, line
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue