diff --git a/static/js/directives/ui/dockerfile-command/dockerfile-command.component.ts b/static/js/directives/ui/dockerfile-command/dockerfile-command.component.ts index 5a77f60d0..d4a335655 100644 --- a/static/js/directives/ui/dockerfile-command/dockerfile-command.component.ts +++ b/static/js/directives/ui/dockerfile-command/dockerfile-command.component.ts @@ -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 = {