@ericwhitedev/lcsts
    Preparing search index...

    Class ComparisonUnitTokenString

    A ComparisonUnitToken that matches by string equality.

    Two ComparisonUnitTokenString instances match when their tokenString values are identical. For single-character strings, private-use-area bullet characters (e.g. \uF0B7) are normalised to their Unicode equivalents (e.g. \u2022) before comparison.

    When compared against a ComparisonUnitTokenRegex, the regex is tested against this token's string.

    const a = new ComparisonUnitTokenString('hello');
    const b = new ComparisonUnitTokenString('hello');
    console.log(a.isMatch(b)); // true

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: unknown

    Optional user-defined payload attached to this token.

    tokenString: string

    The string value of this token.

    Methods