summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts')
-rw-r--r--vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts b/vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts
index e3ec9ae9a..12b1eb912 100644
--- a/vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts
+++ b/vid-webpack-master/src/app/shared/pipes/capitalize/capitalize-and-format.pipe.ts
@@ -4,7 +4,7 @@ import {PipeTransform, Pipe} from '@angular/core';
export class CapitalizeAndFormatPipe implements PipeTransform {
transform(text: string): string {
if (text) {
- text = text.toLowerCase().replace('_', '-');
+ text = text.toLowerCase().replace(/_/g, '-');
return text.charAt(0).toUpperCase() + text.slice(1);
}
return text;