From 9190f4722b75e1ae9c3384064922b1b8683389a6 Mon Sep 17 00:00:00 2001 From: Pete Muir Date: Wed, 26 Apr 2017 07:43:30 -0400 Subject: [PATCH] fix: replace *underscores* --- src/app/spaces/space-name.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/spaces/space-name.pipe.ts b/src/app/spaces/space-name.pipe.ts index bf7d43c..c38a41b 100644 --- a/src/app/spaces/space-name.pipe.ts +++ b/src/app/spaces/space-name.pipe.ts @@ -3,6 +3,6 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'spaceName', pure: true }) export class SpaceNamePipe implements PipeTransform { transform(name: string): any { - return name ? name.replace(/ /g, ' ') : name; + return name ? name.replace(/_/g, ' ') : name; } }