|
@@ -1,4 +1,4 @@
|
|
|
-import { Pipe, PipeTransform } from '@angular/core';
|
|
|
+import { Pipe, PipeTransform } from "@angular/core";
|
|
|
|
|
|
|
|
|
* Generated class for the ReplaceHashtagsPipe pipe.
|
|
@@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
|
|
|
* See https:
|
|
|
*/
|
|
|
@Pipe({
|
|
|
- name: 'replaceHashtags',
|
|
|
+ name: "replaceHashtags"
|
|
|
})
|
|
|
export class ReplaceHashtagsPipe implements PipeTransform {
|
|
|
|
|
@@ -14,7 +14,10 @@ export class ReplaceHashtagsPipe implements PipeTransform {
|
|
|
*/
|
|
|
transform(value: string, ...args) {
|
|
|
for (let hashtag of args[0]) {
|
|
|
- value = value.replace('#' + hashtag.text, '<span class="hashtag">#' + hashtag.text + '</span>');
|
|
|
+ value = value.replace(
|
|
|
+ "#" + hashtag.text,
|
|
|
+ '<span class="hashtag">#' + hashtag.text + "</span>"
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
return value;
|