From: Bjørn Erik Pedersen Date: Wed, 23 Nov 2016 17:54:57 +0000 (+0100) Subject: helpers: Simplify X-Git-Tag: v0.18~50 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=65e5959bad36a6faa7ff8b9c1b21a2b99c4dacad;p=brevno-suite%2Fhugo helpers: Simplify --- diff --git a/helpers/path.go b/helpers/path.go index 8dc5f932..6a35a55c 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -232,7 +232,7 @@ func makePathRelative(inPath string, possibleDirectories ...string) (string, err } // Should be good enough for Hugo. -var isFileRe = regexp.MustCompile(".*\\..{1,6}$") +var isFileRe = regexp.MustCompile(`.*\..{1,6}$`) // GetDottedRelativePath expects a relative path starting after the content directory. // It returns a relative path with dots ("..") navigating up the path structure.