From af9caf469c6d5d3aa59741ee8dd0ea8169f25200 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Thu, 29 Feb 2024 11:51:56 +0100 Subject: [PATCH] Strip lines --- app/controllers/mpa_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/mpa_controller.rb b/app/controllers/mpa_controller.rb index 8241a4d..7c3e359 100644 --- a/app/controllers/mpa_controller.rb +++ b/app/controllers/mpa_controller.rb @@ -19,7 +19,7 @@ def pept2data @response = Hash.new processed_peptides.each do |line| - splitted = line.split(";") + splitted = line.rstrip.split(";") # Skip taxa that are not found unless splitted[1] == "/" @response[splitted[0]] = splitted[1]