Skip to content

Commit

Permalink
Fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
kdyrhage committed Nov 13, 2024
1 parent 3b8dc4d commit 2424518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GFF/writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ printgff(io::IO, chr::Record) = printgff(io, [chr])
function printgff(io::IO, chrs::AbstractVector{Record{G}}) where G <: AbstractGene
iobuffer = IOBuffer()
### Header
if chrs[1].header[1:15] == "#gff-version 3\n"
if occursin(r"^##gff-version 3", chrs[1].header)
print(iobuffer, chrs[1].header)
else
println(iobuffer, "##gff-version 3")
Expand Down

0 comments on commit 2424518

Please sign in to comment.