Merge pull request #2908 from coreos-inc/joseph.schorr/QS-57/dockerfile-view

Trim Dockerfile commands to fix UI
This commit is contained in:
josephschorr 2017-11-10 13:33:54 -05:00 committed by GitHub
commit d32139292b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,7 @@ export class DockerfileCommandComponent {
}
private getCommandKind(command: string): string {
command = command.trim();
if (!command) { return ''; }
var space = command.indexOf(' ');
@ -40,6 +41,7 @@ export class DockerfileCommandComponent {
}
private getCommandTitleHtml(command: string): string {
command = command.trim();
if (!command) { return ''; }
var kindHandlers = {