Skip to content

Commit

Permalink
Update _samples.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Jan 9, 2024
1 parent 2ba0538 commit 265307e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/genomes/_samples.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
# ENA Checklists
ena = 'https://www.ebi.ac.uk/ena/browser/view/'
v.map! do |i|
sanitize(i).gsub(
/(^\s*|[^A-Z\d])(ERC\d{6})(\s*$|[^A-Z\d])/i,
sanitize(i).sub(
/(^\s*)(ERC\d{6})(\s*$)/i,
"\\1<a href='#{ena}\\2' target='_blank'>\\2</a>\\3"
)
end
Expand All @@ -45,8 +45,8 @@
].join('|')})/
ver = /(?:\.[\d\.]+)?/
v.map! do |i|
i.gsub(
/(^\s*|[,;\s])(#{top}\.[A-Z\.-_]+#{ver})(\s*$|[,;\s])/i,
i.sub(
/(^\s*)(#{top}\.[A-Z\.-_]+#{ver})(\s*$)/i,
"\\1<a href='#{ncbi}\\2' target='_blank'>\\2</a>\\3"
)
end
Expand Down

0 comments on commit 265307e

Please sign in to comment.