kaven-basic - v6.0.0
    Preparing search index...

    Function TryParseVersion

    • Attempts to parse a version string from the given line based on specified keys. First, it checks for key-value pairs separated by a colon. If no match is found, it looks for XML-like tags containing the version.

      Parameters

      • line: string

        The string from which to parse the version.

      • ...keys: string[]

        Optional keys to use for parsing. If not provided, "version" is used by default.

      Returns undefined | string

      The parsed version string if found; otherwise, undefined.

      1.0.5

      2023-12-01