address codeql review

This commit is contained in:
João Moreno 2020-06-21 17:17:41 +02:00
parent e125e0a4d5
commit cd3a3ea6fa
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -1252,7 +1252,7 @@ export class MarkdownString {
// escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
this.value += (this.supportThemeIcons ? escapeCodicons(value) : value)
.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&')
.replace('\n', '\n\n');
.replace(/\n/, '\n\n');
return this;
}