mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 00:32:51 +00:00
helpers: Simplify
This commit is contained in:
parent
139585f84a
commit
65e5959bad
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue