Skip to content

Commit

Permalink
showCodeWithoutComments(code): Bug corrected to only remove comments …
Browse files Browse the repository at this point in the history
…and not other code
  • Loading branch information
MartinOtter committed Aug 2, 2021
1 parent 6c341ee commit 18d7cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StateSelection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ end



showCodeWithoutComments(code) = println("code = ", replace(sprint(show,code), r".*#= .*\n" => "") )
showCodeWithoutComments(code) = println("code = ", replace(sprint(show,code), r"( *#= .*=#\n)|(#= .*=#)" => "") )



Expand Down

0 comments on commit 18d7cd8

Please sign in to comment.