We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c944ee commit 89d1de6Copy full SHA for 89d1de6
stdlib/REPL/src/docview.jl
@@ -221,7 +221,7 @@ function lookup_doc(ex)
221
str = string(ex)
222
isdotted = startswith(str, ".")
223
if endswith(str, "=") && Base.operator_precedence(ex) == Base.prec_assignment && ex !== :(:=)
224
- op = str[1:end-1]
+ op = chop(str)
225
eq = isdotted ? ".=" : "="
226
return Markdown.parse("`x $op= y` is a synonym for `x $eq x $op y`")
227
elseif isdotted && ex !== :(..)
stdlib/REPL/test/docview.jl
@@ -47,3 +47,7 @@ end
47
# shouldn't throw when there is a space in a middle of query
48
@test (REPL.matchinds("a ", "a file.txt"); true)
49
end
50
+
51
+@testset "Unicode doc lookup (#41589)" begin
52
+ @test REPL.lookup_doc(:(÷=)) isa Markdown.MD
53
+end
0 commit comments