Skip to content

Commit b1e130d

Browse files
committed
🤖 fix: correct URL sanitization regex
1 parent 8d9055e commit b1e130d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils/status/parseAgentStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function isSingleEmojiGrapheme(str: string): boolean {
3232

3333
function sanitizeUrl(url: string): string {
3434
// Trim common trailing punctuation that often follows URLs in prose.
35-
return url.replace(/[])}.,;:!?]+$/g, "");
35+
return url.replace(/[\])}.,;:!?]+$/g, "");
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)