diff options
author | Rachitha Ramappa <rachitha.ramappa@att.com> | 2020-09-23 12:42:19 +0530 |
---|---|---|
committer | Ikram Ikramullah <ikram@research.att.com> | 2020-10-08 10:53:16 +0000 |
commit | 226ef715d7afe3758fbc88c05cf4d752c6bed51b (patch) | |
tree | 26915a243c02d977cd906937330234860cbed6dd /vid-webpack-master/src/app/shared/pipes | |
parent | 30eb0655f49fd3565d737b91146baf9ce4e02f9d (diff) |
New audit info screen changes7.0.0
Audit screen css changes and export mso status to external file
Change-Id: I71d577121e18090eab7a388ed01707823e45ac82
Issue-ID: VID-901
Signed-off-by: rachitha.ramappa@att.com
Diffstat (limited to 'vid-webpack-master/src/app/shared/pipes')
-rw-r--r-- | vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts | 8 | ||||
-rw-r--r-- | vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts | 17 |
2 files changed, 25 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts new file mode 100644 index 000000000..96e9b6cc6 --- /dev/null +++ b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.spec.ts @@ -0,0 +1,8 @@ +import { SpaceToUnderscorePipe } from './space-to-underscore.pipe'; + +describe('SpaceToUnderscorePipe', () => { + it('create an instance', () => { + const pipe = new SpaceToUnderscorePipe(); + expect(pipe).toBeTruthy(); + }); +}); diff --git a/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts new file mode 100644 index 000000000..b82b28bc1 --- /dev/null +++ b/vid-webpack-master/src/app/shared/pipes/spaceToUnderscore/space-to-underscore.pipe.ts @@ -0,0 +1,17 @@ +import { Pipe, PipeTransform } from '@angular/core'; + +@Pipe({ + name: 'spaceToUnderscore' +}) +export class SpaceToUnderscorePipe implements PipeTransform { + + transform(text: string): string { + if (text) { + // @ts-ignore + text = text.replaceAll(' ', '_'); + return text; + } + return text; + } + +} |