Skip to content

Commit 4fa7161

Browse files
committedOct 4, 2018
Fix NEWS-update.jl for cases of empty issues list
1 parent ba0add8 commit 4fa7161

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎doc/NEWS-update.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ NEWS = get(ARGS, 1, "NEWS.md")
55

66
s = read(NEWS, String)
77

8-
s = s[1:match(r"\[#[0-9]+\]:", s).offset-1];
8+
m = match(r"\[#[0-9]+\]:", s)
9+
if m !== nothing
10+
s = s[1:m.offset-1]
11+
end
912

1013
footnote(n) = "[#$n]: https://github.com/JuliaLang/julia/issues/$n"
1114
N = map(m -> parse(Int,m.captures[1]), eachmatch(r"\[#([0-9]+)\]", s))

0 commit comments

Comments
 (0)
Please sign in to comment.