From e9e484ea315a157685d1b8c4356b6f245e572448 Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Fri, 28 Jul 2023 10:17:56 -0400 Subject: [PATCH] docs: Fix GithubReleases strategy block example The `strategy` block example for `GithubReleases` in the `brew livecheck` documentation should be using `release` inside the `#map` block instead of `json`. I accidentally overlooked one instance of `json` when adapting the code from the `GithubLatest` example above it. --- docs/Brew-Livecheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Brew-Livecheck.md b/docs/Brew-Livecheck.md index 2e1f3c3a22..de8228cf21 100644 --- a/docs/Brew-Livecheck.md +++ b/docs/Brew-Livecheck.md @@ -176,7 +176,7 @@ livecheck do json.map do |release| next if release["draft"] || release["prerelease"] - match = json["tag_name"]&.match(regex) + match = release["tag_name"]&.match(regex) next if match.blank? match[1]