UNPKG

@nextcloud/vue

Version:
17 lines (16 loc) 463 B
/*! * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ export interface StringRange { start: number; end: number; } /** * Find the ranges of a substr in a given string * * @param text - The text to search in * @param search - The text to search for * @return The array of ranges to highlight */ export declare function findRanges(text: string, search: string): StringRange[];