Skip to content

Commit

Permalink
Merge pull request #18361 from nojvek/decorationHelperBugFix
Browse files Browse the repository at this point in the history
Fix bug in decorationRenderHelper
  • Loading branch information
aeschli committed Jan 19, 2017
2 parents b074558 + 25eb362 commit 906d4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/editor/browser/services/codeEditorServiceImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class DecorationRenderHelper {
cssTextArr.push(strings.format(this._CSS_MAP.contentIconPath, opts.contentIconPath.toString(true).replace(/'/g, '%27')));
}
if (typeof opts.contentText !== 'undefined') {
let escaped = opts.contentText.replace(/\"/g, '\\\"');
const escaped = opts.contentText.replace(/'/g, '\\\'');
cssTextArr.push(strings.format(this._CSS_MAP.contentText, escaped));
}
DecorationRenderHelper.collectCSSText(opts, ['textDecoration', 'color', 'backgroundColor', 'margin'], cssTextArr);
Expand Down

0 comments on commit 906d4df

Please sign in to comment.