helpers: Simplify

This commit is contained in:
Bjørn Erik Pedersen 2016-11-23 18:54:57 +01:00
parent 139585f84a
commit 65e5959bad

View file

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