better fix for css escaping in explorer

This commit is contained in:
Benjamin Pasero 2016-09-14 16:19:55 +02:00
parent 5f29eb7523
commit cd1318c7b8

View file

@ -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
}
}