Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 21, 2024
1 parent 73d1a29 commit fbc3a65
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 fbc3a65

Please sign in to comment.