mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
fetchgit: escape dot in regex
This regex should match files ending in `.git`, not any character and `git` after that.
This commit is contained in:
parent
33b610fa09
commit
e238ff073f
@ -3,7 +3,7 @@
|
||||
inherit (lib) removeSuffix splitString last;
|
||||
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
|
||||
|
||||
matched = builtins.match "(.*).git" base;
|
||||
matched = builtins.match "(.*)\\.git" base;
|
||||
|
||||
short = builtins.substring 0 7 rev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user