the string to stop at
object of optional parameters. { insensitive: boolean }
Optional
insensitive?: boolean
a parser that consumes the input string until the given string is found.
Generated using TypeDoc
manyTillStr
is an optimized version ofmanyTill
. ThemanyTill
combinator is slow because it runs the given parser on every character of the string until it succeeds. However, if you just want to consume input until you get to a substring, usemanyTillStr
. It usesindexOf
, which is significantly faster than running a parser over every character.