Skip to content

Commit

Permalink
Fixed typo in Locus(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdyrhage committed Nov 12, 2024
1 parent dabffb1 commit c39ae6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record.jl
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function Locus(s::T) where T <: AbstractString
return PointLocus(parse(Int, m[1]), BetweenNucleotides)
end
### Span
m = match(r"^(<?)(\d+)..(>?)(\d+)$", s)
m = match(r"^(<?)(\d+)\.\.(>?)(\d+)$", s)
if !isnothing(m)
p = parse(Int, m[2]):parse(Int, m[4])
type = if all(isempty, m.captures[[1,3]])
Expand Down

2 comments on commit c39ae6d

@kdyrhage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Updated docs and fixed a typo that allowed illegal locus strings to be parsed.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/119259

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.2 -m "<description of version>" c39ae6deb2cd4c73086f0c16a2830934f556a46c
git push origin v0.4.2

Please sign in to comment.