提交 906d4df7 编写于 作者: M Martin Aeschlimann 提交者: GitHub

Merge pull request #18361 from nojvek/decorationHelperBugFix

Fix bug in decorationRenderHelper
...@@ -310,7 +310,7 @@ class DecorationRenderHelper { ...@@ -310,7 +310,7 @@ class DecorationRenderHelper {
cssTextArr.push(strings.format(this._CSS_MAP.contentIconPath, opts.contentIconPath.toString(true).replace(/'/g, '%27'))); cssTextArr.push(strings.format(this._CSS_MAP.contentIconPath, opts.contentIconPath.toString(true).replace(/'/g, '%27')));
} }
if (typeof opts.contentText !== 'undefined') { 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)); cssTextArr.push(strings.format(this._CSS_MAP.contentText, escaped));
} }
DecorationRenderHelper.collectCSSText(opts, ['textDecoration', 'color', 'backgroundColor', 'margin'], cssTextArr); DecorationRenderHelper.collectCSSText(opts, ['textDecoration', 'color', 'backgroundColor', 'margin'], cssTextArr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册