Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 25, 2024
1 parent 7f1a87d commit 7cd1f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/abstractsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3335,7 +3335,8 @@ function parse_variable(sys::AbstractSystem, str::AbstractString)
# I'd write a regex to validate `str`, but https://xkcd.com/1171/
str = strip(str)
derivative_level = 0
while ((cond1 = startswith(str, "D(")) || startswith(str, "Differential(")) && endswith(str, ")")
while ((cond1 = startswith(str, "D(")) || startswith(str, "Differential(")) &&
endswith(str, ")")
if cond1
derivative_level += 1
str = _string_view_inner(str, 2, 1)
Expand Down

0 comments on commit 7cd1f71

Please sign in to comment.