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.
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.