Skip to content

Commit 9d2bd9d

Browse files
committed
convert superscripts to powers
1 parent cd19d92 commit 9d2bd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function parse_constraint(ref)
4747
elseif ref isa ConstraintRef
4848
ref_obj = constraint_object(ref)
4949
ref_str = string(ref_obj.func)
50-
ref_func = replace(ref_str, " " => "") #remove spaces
50+
ref_func = replace(ref_str, " " => "", "²" => "^2") #remove spaces
5151
ref_type = fieldnames(typeof(ref_obj.set))[1]
5252
ref_rhs = normalized_rhs(ref)
5353
end

0 commit comments

Comments
 (0)