Skip to content

Commit 18d7cd8

Browse files
committed
showCodeWithoutComments(code): Bug corrected to only remove comments and not other code
1 parent 6c341ee commit 18d7cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StateSelection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ end
209209

210210

211211

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

214214

215215

0 commit comments

Comments
 (0)