fix tests
This commit is contained in:
@@ -234,6 +234,9 @@ export function cleanText(text: string): string {
|
||||
|
||||
// Remove spaces around newlines
|
||||
cleaned = cleaned.replace(/ *\n */g, '\n');
|
||||
|
||||
// Normalize multiple spaces to single space within lines
|
||||
cleaned = cleaned.replace(/ {2,}/g, ' ');
|
||||
|
||||
// Remove hashtags from end of text
|
||||
// Pattern: #word #multiple_words (supports international characters)
|
||||
|
||||
Reference in New Issue
Block a user