Merge from vscode ad407028575a77ea387eb7cc219b323dc017b686

This commit is contained in:
ADS Merger
2020-08-22 06:06:52 +00:00
committed by Anthony Dresser
parent 404260b8a0
commit 4ad73d381c
480 changed files with 14360 additions and 14122 deletions

View File

@@ -35,7 +35,7 @@ function fourPart2SemVer(version: string): string {
<version core> ::= <major> "." <minor> "." <patch>
*/
export class SemVerProxy extends SemVer {
private _version: string;
public readonly version: string;
constructor(version: string | SemVerProxy, loose?: boolean) {
let ver: string;
@@ -50,13 +50,9 @@ export class SemVerProxy extends SemVer {
}
super(ver, loose);
if (ver.includes('-')) {
this._version = ver;
this.version = ver;
} else {
this._version = ver.replace('+', '.'); // change back any '+' character used to delimit the build portion of the version with a '.'
this.version = ver.replace('+', '.'); // change back any '+' character used to delimit the build portion of the version with a '.'
}
}
get version(): string {
return this._version;
}
}