We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dda656e commit aecb675Copy full SHA for aecb675
packages/core/src/version.ts
@@ -17,9 +17,10 @@ export class Version {
17
public readonly patch: string;
18
19
constructor(public full: string) {
20
- this.major = full.split('.')[0];
21
- this.minor = full.split('.')[1];
22
- this.patch = full.split('.').slice(2).join('.');
+ const parts = full.split('.');
+ this.major = parts[0];
+ this.minor = parts[1];
23
+ this.patch = parts.slice(2).join('.');
24
}
25
26
0 commit comments