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 8be6f0f commit bd1a664Copy full SHA for bd1a664
base/strings/lazy.jl
@@ -67,7 +67,7 @@ macro lazy_str(text)
67
parts = Any[]
68
lastidx = idx = 1
69
while (idx = findnext('$', text, idx)) !== nothing
70
- lastidx < idx && push!(parts, text[lastidx:idx-1])
+ lastidx < idx && push!(parts, text[lastidx:prevind(text, idx)])
71
idx += 1
72
expr, idx = Meta.parseatom(text, idx; filename=string(__source__.file))
73
push!(parts, esc(expr))
test/strings/basic.jl
@@ -1191,6 +1191,9 @@ end
1191
end
1192
return a
1193
end |> Core.Compiler.is_foldable
1194
+ let i=49248
1195
+ @test String(lazy"PR n°$i") == "PR n°49248"
1196
+ end
1197
1198
1199
@testset "String Effects" begin
0 commit comments