Revision 09cbae8fe03315288c1bb53ba7ce24061bfb9f26 authored by Gunnar Farnebäck on 03 November 2023, 14:53:33 UTC, committed by GitHub on 03 November 2023, 14:53:33 UTC
This PR makes three improvements to the Windows `splitdrive` implementation: 1. The matched regex is split into pieces and annotated. 2. Forward and backward slashes are considered equivalent. This fixes #38492. 3. The patterns in the regex are reordered so that long UNC paths and long drive letters are once more recognized. This has been broken since #19695 (Julia 0.5). Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent 746cfdf
NEWS-update.jl
# Script to automatically insert Markdown footnotes for all [#xxxx] issue
# cross-references in the NEWS file.
NEWS = get(ARGS, 1, "NEWS.md")
s = read(NEWS, String)
m = match(r"\[#[0-9]+\]:", s)
if m !== nothing
s = s[1:m.offset-1]
end
footnote(n) = "[#$n]: https://github.com/JuliaLang/julia/issues/$n"
N = map(m -> parse(Int,m.captures[1]), eachmatch(r"\[#([0-9]+)\]", s))
foots = join(map(footnote, sort!(unique(N))), "\n")
open(NEWS, "w") do f
println(f, s, foots)
end
Computing file changes ...