mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -17,7 +17,7 @@
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
export interface HightlightTransformResult {
|
||||
export interface HighlightTransformResult {
|
||||
text: string;
|
||||
changed: boolean;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ export class HighlightTransformService {
|
||||
* @param wrapperClass CSS class used to provide highlighting style
|
||||
* @returns New text along with boolean value to indicate whether anything was highlighted
|
||||
*/
|
||||
public highlight(text: string, search: string, wrapperClass: string = 'highlight'): HightlightTransformResult {
|
||||
public highlight(text: string, search: string, wrapperClass: string = 'highlight'): HighlightTransformResult {
|
||||
let isMatching = false,
|
||||
result = text;
|
||||
|
||||
|
Reference in New Issue
Block a user