mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 22:37:41 +00:00
better fix for css escaping in explorer
This commit is contained in:
parent
5f29eb7523
commit
cd1318c7b8
|
@ -429,7 +429,7 @@ export class FileRenderer extends ActionsRenderer implements IRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private cssEscape(val: string): string {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue