UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

8 lines (7 loc) 215 B
//#region src/utils/find-char-index.ts function findCharIndex(text, from, regex) { for (let i = from; i < text.length; i++) if (regex.test(text[i])) return i; return null; } //#endregion export { findCharIndex };