mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
helpers: Simplify
This commit is contained in:
1 parent
139585f84a
commit
65e5959bad
1 file changed
+1
-1
+1
-1
@@ -232,7 +232,7 @@ func makePathRelative(inPath string, possibleDirectories ...string) (string, err
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Should be good enough for Hugo.
|
// 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.
|
// GetDottedRelativePath expects a relative path starting after the content directory.
|
||||||
// It returns a relative path with dots ("..") navigating up the path structure.
|
// It returns a relative path with dots ("..") navigating up the path structure.
|
||||||
|
|||||||
Reference in new issue
Block a user