UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

9 lines (8 loc) 255 B
//#region src/utils/find-last-char-index.ts function findLastCharIndex(text, from, regex) { for (let i = from; i >= 0; i--) if (regex.test(text[i])) return i; // istanbul ignore next -- @preserve return -1; } //#endregion export { findLastCharIndex };