bin/rbbt_query.rb in rbbt-util-3.1.0 vs bin/rbbt_query.rb in rbbt-util-3.2.0
- old
+ new
@@ -7,10 +7,10 @@
options = SOPT.get("-i--identifiers*:-f--format*:-o--organism*:-p--persistence:-l--log*:-r--report:-h--hash")
file = ARGV[0]
if not File.exists? file
- base, path = file.match(/(.*)?\.(.*)/).values_at 1, 2
+ base, path = file.match(/([^.]*)\.(.*)/).values_at 1, 2
require 'rbbt/sources/' << base.to_s.downcase
klass = Misc.string2const base
file = klass[path].find
end