Closed GoogleCodeExporter closed 9 years ago
Although you're right, it's old code you're comparing to. I think it nowadays
already does what you want, since the cleanup function has been enhanced (see
latest svn version):
def clean(var)
var.gsub!('`', "'") #replace a backquote with a single quote
var.gsub!('"', '') #remove the double quote chars
var.gsub!('[', '(') #replace the ' [ ' with a ' ( '
var.gsub!(']', ')') #replace the ' ] ' with a ' ) '
var.gsub!('/', ' ') #remove any '/'
var.gsub!('\\', ' ') #remove any '\', the \\ means a normal \
var.gsub!('_', ' ') # replace any underscores with spaces, some freedb info got
underscores instead of spaces
var.strip!
end
Original comment by rubyripp...@gmail.com
on 18 Mar 2007 at 3:06
Original issue reported on code.google.com by
stearns%...@gtempaccount.com
on 18 Mar 2007 at 12:54Attachments: