mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
helpers: Simplify
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user