fix: update README and tests (#85)

(cherry picked from commit 4b0db74aa8)
This commit is contained in:
Leo Kettmeir
2024-10-09 01:54:03 -07:00
committed by crowlkats
parent 4606d5cc6f
commit b571f8c14c
3 changed files with 16 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ const GIT_HASH_RE = /^[0-9a-fA-F]{40}$/;
* @returns {VersionRange | null}
*/
export function parseVersionRange(version) {
version = String(version) || "1.x";
version = String(version) || "2.x";
version = version.trim();
if (version === "canary") {