mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore(semver): remove legacy Range.ranges
object definition (#4374)
* initial commit * remove obsolete type * minify * update
This commit is contained in:
parent
333c4db283
commit
513805661b
@ -279,6 +279,5 @@ export function parseRange(range: string): Range {
|
||||
const ranges = range
|
||||
.split(/\s*\|\|\s*/)
|
||||
.map((range) => parseHyphenRange(range).flatMap(parseRangeString));
|
||||
Object.defineProperty(ranges, "ranges", { value: ranges });
|
||||
return ranges as Range;
|
||||
return ranges;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user