[前][次][番号順一覧][スレッド一覧]

ruby-changes:70511

From: Nobuyoshi <ko1@a...>
Date: Fri, 24 Dec 2021 14:41:17 +0900 (JST)
Subject: [ruby-changes:70511] 097c4a2adf (master): sync_default_gems.rb: GitHub links at word boundary only [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=097c4a2adf

From 097c4a2adf6ed640bd5c89653e591a674acd4c6e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 24 Dec 2021 14:12:53 +0900
Subject: sync_default_gems.rb: GitHub links at word boundary only [ci skip]

---
 tool/sync_default_gems.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index eb186ef2806..d10e95902b5 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -381,8 +381,8 @@ def message_filter(repo, sha) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L381
   log = STDIN.read
   log.delete!("\r")
   url = "https://github.com/#{repo}"
-  print "[#{repo}] ", log.gsub(/fix +#\d+|\(#\d+\)/i) {
-    $&.sub(/#/) {"#{url}/pull/"}
+  print "[#{repo}] ", log.gsub(/\b(?i:fix) +\K#(?=\d+\b)|\(\K#(?=\d+\))/) {
+    "#{url}/pull/"
   }.gsub(%r{(?<![-\[\](){}\w@/])(?:(\w+(?:-\w+)*/\w+(?:-\w+)*)@)?(\h{10,40})\b}) {|c|
     "https://github.com/#{$1 || repo}/commit/#{$2[0,12]}"
   }.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]