Fix versioner regexp's (fixes #1023)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user