Skip to content

Commit

Permalink
fix(package): removed unused import statement in NgxLinkifyjsPipe
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Jan 10, 2019
1 parent c37874e commit 29f0437
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/module/pipes/ngx-linkifyjs.pipe.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Pipe, PipeTransform} from '@angular/core';
// @ts-ignore
import * as linkify from 'linkifyjs';

// @ts-ignore
import linkifyStr from 'linkifyjs/string';

Expand All @@ -10,7 +9,11 @@ import linkifyStr from 'linkifyjs/string';
export class NgxLinkifyjsPipe implements PipeTransform {

transform(value: any, args?: any): string {
return value ? linkifyStr(value, {target: '_system'}) : value;
return value ? linkifyStr(value, {
target: {
url: '_self'
}
}) : value;
}

}

0 comments on commit 29f0437

Please sign in to comment.