mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-28 11:21:06 -05:00
Fixed range normalizer returning undefined
This commit is contained in:
parent
49c8e7d535
commit
915ab6b52b
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable no-cond-assign */
|
||||
|
||||
import { asArrayLike, isIterable } from "@/utils/collections";
|
||||
import { VersionRange, parseVersionRange } from "@/utils/versioning";
|
||||
import { VersionRange, noneVersionRange, parseVersionRange } from "@/utils/versioning";
|
||||
import { MinecraftVersion, MinecraftVersionManifestEntry } from "./minecraft-version";
|
||||
import { MinecraftVersionType } from "./minecraft-version-type";
|
||||
|
||||
|
@ -139,7 +139,7 @@ export function normalizeMinecraftVersionRange(range: string | Iterable<string>
|
|||
return normalizeMinecraftVersion(x);
|
||||
}));
|
||||
|
||||
return parseVersionRange(normalizedRanges);
|
||||
return parseVersionRange(normalizedRanges) || noneVersionRange(normalizedRanges.join(" || "));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue