Merge pull request #111782 from Luflosi/fetchgit-escape-regex

fetchgit: escape dot in regex
This commit is contained in:
Sandro
2021-03-21 05:34:53 +01:00
committed by GitHub

View File

@@ -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;