Skip to content

Commit

Permalink
Update utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 5, 2024
1 parent 2287c76 commit 36c25e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function diff2term(O, O_metadata::Union{Dict, Nothing, Base.ImmutableDict}=nothi
opname = string(tosymbol(args[1]), "[", map(tosymbol, args[2:end])..., "]")
return Sym{symtype(O)}(Symbol(opname, d_separator, ds))
end
newname = occursin(d_separator, opname) ? Symbol(opname, ds) : Symbol(opname, d_separator, ds)
newname = hasnode(d_separator, opname) ? Symbol(opname, ds) : Symbol(opname, d_separator, ds)
return setname(maketerm(typeof(O), rename(oldop, newname), children(O), symtype(O), O_metadata isa Nothing ?
metadata(O) : Base.ImmutableDict(metadata(O)..., O_metadata...)), newname)
end
Expand Down

0 comments on commit 36c25e8

Please sign in to comment.