fuzzyjs
Version:
Simple fuzzy matching
14 lines (13 loc) • 376 B
TypeScript
import { MatchRange } from "./match";
export interface SurroundOptions {
result: {
ranges: MatchRange[];
};
prefix?: string;
suffix?: string;
}
/**
* Surround parts of the string that matched with prefix and suffix.
* Useful to emphasize the parts that matched.
*/
export declare function surround(source: string, options: SurroundOptions): string;