import { regEx } from "../../util/regex.js";

//#region lib/modules/versioning/common.ts
function getExcludedVersions(range) {
	return range.split(",").map((v) => v.trim()).filter((version) => regEx(/^!=/).test(version)).map((version) => version.replace("!=", "").trim());
}
function getFilteredRange(range) {
	return range.split(",").map((v) => v.trim()).filter((version) => !regEx(/^!=/).test(version)).join(",");
}

//#endregion
export { getExcludedVersions, getFilteredRange };
//# sourceMappingURL=common.js.map