majorMinor
lib.versions.majorMinor
Docs pulled from | This Revision | 16 minutes ago
Get string of the first two parts (major and minor) of a version string.
Inputs
v
-
1. Function argument
Examples
majorMinor
usage example
majorMinor "1.2.3"
=> "1.2"
Noogle detected
Implementation
The following is the current implementation of this function.
majorMinor = v: builtins.concatStringsSep "." (lib.take 2 (splitVersion v));