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 487e2da commit b858beaCopy full SHA for b858bea
src/UnicodeREPL.jl
@@ -36,7 +36,7 @@ function substitution(istr::AbstractString)
36
"\\u(" * str
37
else
38
codepoint = m.match[1:end-1]
39
- Meta.parse("\"\\u$codepoint\"") * str[length(m.match)+1:end]
+ Meta.parse("\"\\U$codepoint\"") * str[length(m.match)+1:end]
40
end
41
42
return ostr
test/substitution.jl
@@ -4,4 +4,5 @@ using UnicodeREPL
4
@testset "substitution" begin
5
@test UnicodeREPL.substitution("\\u(2560)\\u(2563)ello World!") == "╠╣ello World!"
6
@test UnicodeREPL.substitution("\\u(bed) \\u(cab) \\u(feed) \\u(dad) \\u(BEEF)") == "௭ ಫ ﻭ ත 뻯"
7
+ @test UnicodeREPL.substitution("\\u(1F607) \\u(3b1)\\u(20E8)") == "😇 α⃨"
8
0 commit comments