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
commit d6df2c3fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;