Skip to content

Commit 4277ede

Browse files
committed
removed optional stripping of square bracket content
1 parent 3ab8bfb commit 4277ede

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lingarr.Server/Services/Subtitle/SubtitleFormatterService.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public static string RemoveMarkup(string input)
2424
// Replace tab characters (escaped or literal)
2525
cleaned = cleaned.Replace("\\t", " ").Replace("\t", " ");
2626

27-
// Optional: remove other control-like tags, e.g. [note], (custom formats)
28-
cleaned = Regex.Replace(cleaned, @"\[[^\]]*]", string.Empty);
29-
3027
// Collapse multiple whitespace into a single space
3128
cleaned = Regex.Replace(cleaned, @"\s{2,}", " ");
3229

0 commit comments

Comments
 (0)