File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function splitline(s::AbstractString)
104104 in_token = false
105105 push! (tokens, s[start_i: (i - 1 )])
106106 end
107- elseif c == ' #' && quote_open_char == ' '
107+ elseif c == ' #' && ! in_token
108108 return tokens
109109 elseif ! in_token
110110 in_token = true
Original file line number Diff line number Diff line change @@ -1717,6 +1717,8 @@ end
17171717 @test splitline (" foo 'bar'a' b" ) == [" foo" , " bar'a" , " b" ]
17181718 @test splitline (" foo \" bar' a\" b" ) == [" foo" , " bar' a" , " b" ]
17191719 @test splitline (" foo '' b" ) == [" foo" , " " , " b" ]
1720+ @test splitline (" foo #bar" ) == [" foo" ]
1721+ @test splitline (" foo b#ar" ) == [" foo" , " b#ar" ]
17201722 @test_throws ArgumentError splitline (" foo 'bar" )
17211723 @test_throws ArgumentError splitline (" foo 'ba'r " )
17221724 @test_throws ArgumentError splitline (" foo \" bar'" )
You can’t perform that action at this time.
0 commit comments