Skip to content

Commit f015348

Browse files
authored
fix: resolve Python 3.13 re.sub PatternError in bridge.py (#383)
fix: resolve Python 3.13 re.sub PatternError in bridge.py
1 parent 12c0a65 commit f015348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/session/conductor_templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ def create_slack_app(config: dict):
13611361
# Links [text](url) -> <url|text>
13621362
text = re.sub(r"\[([^\]]+)\]\(([^)]+)\)", r"<\2|\1>", text)
13631363
# Bullet lists: - item or * item -> bullet char item
1364-
text = re.sub(r"^(\s*)[-*]\s+", r"\1\u2022 ", text, flags=re.MULTILINE)
1364+
text = re.sub(r"^(\s*)[-*]\s+", "\\1\u2022 ", text, flags=re.MULTILINE)
13651365
13661366
# Restore inline code.
13671367
for i, code in enumerate(inline_codes):

0 commit comments

Comments
 (0)