How this tool computes its result
Parses two version strings against a strict major.minor.patch regex (optional leading "v", optional -prerelease, optional +build metadata) and compares major, then minor, then patch numerically. If those three match, prerelease identifiers are compared segment by segment (numeric segments compared as numbers, string segments as strings), and a version with any prerelease tag always ranks below the same version with none. A separate range expression field is checked only against Version A: it supports space-separated comparators (>, >=, <, <=, =), ||-joined OR groups, and caret (^) / tilde (~) shorthand, both of which get expanded into an equivalent >=/< pair before evaluation.
