test-filesystem
    Preparing search index...

    Function countMatches

    • Simple way to count string occurrences for testing.

      Parameters

      • content: string

        The text to search within.

      • search: string

        The substring to count occurrences of.

      Returns number

      How many times search occurs in content.