From 6b8a03c5a18ea185470680ba2c27fc51bb92651f Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Tue, 6 Sep 2022 20:45:26 +1200 Subject: [PATCH] doc: guard release branch regex with ^...$ --- doc/make.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/make.jl b/doc/make.jl index 5036ef5ee44cb..61adf2ec603fa 100644 --- a/doc/make.jl +++ b/doc/make.jl @@ -343,7 +343,7 @@ function Documenter.deploy_folder(::BuildBotConfig; devurl, repo, branch, kwargs @info "Unable to deploy the documentation: DOCUMENTER_KEY missing" return Documenter.DeployDecision(; all_ok=false) end - release = match(r"release-([0-9]+\.[0-9]+)", Base.GIT_VERSION_INFO.branch) + release = match(r"^release-([0-9]+\.[0-9]+)$", Base.GIT_VERSION_INFO.branch) if Base.GIT_VERSION_INFO.tagged_commit # Strip extra pre-release info (1.5.0-rc2.0 -> 1.5.0-rc2) ver = VersionNumber(VERSION.major, VERSION.minor, VERSION.patch,