expand trailing '+' when not part of version number

This commit is contained in:
Roland Walker
2014-06-06 09:50:01 -04:00
parent 735baa839f
commit a979c8199a
+2 -1
View File
@@ -66,6 +66,7 @@ PRESERVE_TRAILING_PATS = [
%r{mp3}i,
%r{3[\s-]*d}i,
%r{diff3}i,
%r{\A[^\d]+\+\Z}i,
]
# The code that employs these patterns against App names
@@ -308,7 +309,7 @@ class CaskFileName < String
EXPANDED_SYMBOLS.each do |k, v|
cask_file_name.gsub!(k, " #{v} ")
end
cask_file_name
cask_file_name.sub(/ +\Z/, '')
end
def add_extension