UNPKG

@botonic/plugin-contentful

Version:

## What Does This Plugin Do?

16 lines (15 loc) 562 B
export declare class TokenSkipper { private readonly separators; private readonly notSeparators; private readonly notClosingSeparator; constructor(separators?: RegExp, notSeparators?: RegExp); /** * Eg. skipWords('a? b',1, false) => 1 * @param text * @param skipWordsCount how many words to skip * @param skipClosingSeparators whether characters like ? must be skipped */ skipWords(text: string, skipWordsCount: number, skipClosingSeparators: boolean): number; private skipWord; private skipSeparators; }