From 7e3af23d1d66ec02da74a23cce1262af395064f9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 4 Nov 2022 16:22:21 +0900 Subject: [PATCH] sync_default_gems.rb: fix a typo [ci skip] --- tool/sync_default_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 80eabab81c..d6c7f771d7 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -444,7 +444,7 @@ def message_filter(repo, sha, input: ARGF) log.sub!(/(?<=\n)\n+\z/, '') # drop empty lines at the last conv[log] log.sub!(/(?:(\A\s*)|\s*\n)(?=(?i:Co-authored-by:.*)*\Z)/) { - $~.begin(0) ? "#{url}\n" : "\n\n#{url}" + $~.begin(1) ? "#{url}\n" : "\n\n#{url}" } else log = url