@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
16 lines (15 loc) • 562 B
TypeScript
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;
}