Traqula
    Preparing search index...

    Interface ILineTerminatorsTester

    A subset of the regExp interface. Needed to compute line/column info by a chevrotain lexer.

    interface ILineTerminatorsTester {
        lastIndex: number;
        test: (text: string) => boolean;
    }
    Index

    Properties

    Properties

    lastIndex: number

    Just like the regExp lastIndex with the global flag enabled It should be updated after every match to point to the offset where the next match attempt starts.

    test: (text: string) => boolean

    Just like regExp.test