summaryrefslogtreecommitdiffstats
path: root/helpers/path.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 18:54:57 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-23 18:54:57 +0100
commit65e5959bad36a6faa7ff8b9c1b21a2b99c4dacad (patch)
tree229f6386f701ecd9ad53e2a4210b3ffb7b03c67c /helpers/path.go
parent139585f84a82f08027ca72b3d3266b7f58db2883 (diff)
helpers: Simplify
Diffstat (limited to 'helpers/path.go')
-rw-r--r--helpers/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path.go b/helpers/path.go
index 8dc5f9324..6a35a55ca 100644
--- a/helpers/path.go
+++ b/helpers/path.go
@@ -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.