Fix versioner regexp's (fixes #1023)

This commit is contained in:
Audrius Butkevicius
2014-11-25 22:32:18 +00:00
parent ea17542e4b
commit c1069052ae
2 changed files with 5 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ func taggedFilename(name, tag string) string {
return filepath.Join(dir, withoutExt+"~"+tag+ext)
}
var tagExp = regexp.MustCompile(`~([^~.]+)(?:\.[^.]+)?$`)
var tagExp = regexp.MustCompile(`.*~([^~.]+)(?:\.[^.]+)?$`)
// Returns the tag from a filename, whether at the end or middle.
func filenameTag(path string) string {