Allow underscore with these suffixes for version detection

This commit is contained in:
Adam Vandenberg 2011-06-16 06:47:13 -07:00
parent 0523f66bec
commit b643d105eb

View File

@ -157,7 +157,7 @@ class Pathname
return $1 if $1 return $1 if $1
# eg foobar-4.5.0-bin # eg foobar-4.5.0-bin
/-((\d+\.)+\d+[abc]?)[-.](bin|stable|src|sources?)$/.match stem /-((\d+\.)+\d+[abc]?)[-._](bin|stable|src|sources?)$/.match stem
return $1 if $1 return $1 if $1
# Debian style eg dash_0.5.5.1.orig.tar.gz # Debian style eg dash_0.5.5.1.orig.tar.gz