shithub: hugo

Download patch

ref: 65e5959bad36a6faa7ff8b9c1b21a2b99c4dacad
parent: 139585f84a82f08027ca72b3d3266b7f58db2883
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Nov 23 13:54:57 EST 2016

helpers: Simplify

--- a/helpers/path.go
+++ b/helpers/path.go
@@ -232,7 +232,7 @@
 }
 
 // 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.