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;
|
inherit (lib) removeSuffix splitString last;
|
||||||
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
|
base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
|
||||||
|
|
||||||
matched = builtins.match "(.*).git" base;
|
matched = builtins.match "(.*)\\.git" base;
|
||||||
|
|
||||||
short = builtins.substring 0 7 rev;
|
short = builtins.substring 0 7 rev;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user