forked from mirrors/nixpkgs
pkgs/lib/strings.nix: strip trailing whitespace
This commit is contained in:
parent
7181888c23
commit
726574a5e4
|
@ -161,7 +161,7 @@ rec {
|
|||
getVersion = drv: (builtins.parseDrvName drv.name).version;
|
||||
|
||||
|
||||
# Extract name with version from URL. Ask for separator which is
|
||||
# Extract name with version from URL. Ask for separator which is
|
||||
# supposed to start extension
|
||||
nameFromURL = url: sep: let
|
||||
components = splitString "/" url;
|
||||
|
|
Loading…
Reference in a new issue