Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jun 14, 2022
1 parent 40e348e commit ed2d4a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/base/utils/gene_associations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ function _parse_grr_to_sbml(str::String)::Maybe{SBML.GeneProductAssociation}
s = str
toks = String[]
m = Nothing
while !isnothing(begin
m = match(r"( +|[a-zA-Z0-9_-]+|[^ a-zA-Z0-9_()-]+|[(]|[)])(.*)", s)
end)
while !isnothing(
begin
m = match(r"( +|[a-zA-Z0-9_-]+|[^ a-zA-Z0-9_()-]+|[(]|[)])(.*)", s)
end,
)
tok = strip(m.captures[1])
!isempty(tok) && push!(toks, tok)
s = m.captures[2]
Expand Down

0 comments on commit ed2d4a8

Please sign in to comment.