mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-11-05 01:35:32 +00:00
docs: use JSDoc for compatible release specifier comment (#1113)
Amp-Thread-ID: https://ampcode.com/threads/T-01a17443-b5b9-703c-8877-780650eae403 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -195,9 +195,11 @@ async function findHighestSatisfyingVersion(
|
||||
return pep440Match;
|
||||
}
|
||||
|
||||
// `~=` is the PEP 440 compatible release operator. semver accepts it as a
|
||||
// tilde range with a narrower upper bound (`~=0.5` as `<0.6.0` instead of
|
||||
// `<1.0`), so it must only be evaluated as PEP 440.
|
||||
/**
|
||||
* `~=` is the PEP 440 compatible release operator. semver accepts it as a
|
||||
* tilde range with a narrower upper bound (`~=0.5` as `<0.6.0` instead of
|
||||
* `<1.0`), so it must only be evaluated as PEP 440.
|
||||
*/
|
||||
function isCompatibleReleaseSpecifier(versionSpecifier: string): boolean {
|
||||
return versionSpecifier.includes("~=");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user