Skip to content

Commit

Permalink
feat(package): added linkify method to the service
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Jul 23, 2018
1 parent aeb43af commit 52e8f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module/service/ngx-linkifyjs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export class NgxLinkifyjsService {
constructor() {
}

linkify(text: string): string {
// @ts-ignore
return text.linkify();
}

find(text: string): Array<Link> {
return linkify.find(text);
}
Expand Down

0 comments on commit 52e8f7d

Please sign in to comment.