Skip to content

Commit 82f4a73

Browse files
committed
style(webapp): drop a needless escape in the image regex
1 parent d9ff853 commit 82f4a73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/components/dashboard-agent/model-markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const FETCHING_TAG =
2222

2323
/** Alt text is re-emitted as prose, so it must not itself become markup. */
2424
function plainAlt(alt: string): string {
25-
return alt.replace(/[!\[\]<>`]/g, "").trim();
25+
return alt.replace(/[![\]<>`]/g, "").trim();
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)