提交 cd1318c7 编写于 作者: B Benjamin Pasero

better fix for css escaping in explorer

上级 5f29eb75
......@@ -429,7 +429,7 @@ export class FileRenderer extends ActionsRenderer implements IRenderer {
}
private cssEscape(val: string): string {
return val.replace(/ /g, '\\ '); // make sure to not introduce CSS classes from files that contain whitespace
return val.replace(/\s/g, '\\$&'); // make sure to not introduce CSS classes from files that contain whitespace
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册