Merge pull request #111782 from Luflosi/fetchgit-escape-regex
fetchgit: escape dot in regex
This commit is contained in:
commit
d6df2c3fab
@ -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