Skip to content

Commit cd3a3ea

Browse files
committed
address codeql review
1 parent e125e0a commit cd3a3ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ export class MarkdownString {
12521252
// escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
12531253
this.value += (this.supportThemeIcons ? escapeCodicons(value) : value)
12541254
.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&')
1255-
.replace('\n', '\n\n');
1255+
.replace(/\n/, '\n\n');
12561256

12571257
return this;
12581258
}

0 commit comments

Comments
 (0)