helpers: Simplify

This commit is contained in:
Bjørn Erik Pedersen 2016-11-23 18:54:57 +01:00
parent 139585f84a
commit 65e5959bad
1 changed files with 1 additions and 1 deletions

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.