query
On this page

patch

lib.versions.patch

Docs pulled from | This Revision | 21 minutes ago


Get the patch version string from a string.

Inputs

v

1. Function argument

Examples

patch usage example

patch "1.2.3"
=> "3"

Noogle detected

Implementation

The following is the current implementation of this function.

patch = v: builtins.elemAt (splitVersion v) 2;