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

ruby-changes:64621

From: Nobuyoshi <ko1@a...>
Date: Sun, 27 Dec 2020 17:51:38 +0900 (JST)
Subject: [ruby-changes:64621] 0957814c27 (master): Get rid of \K for old BASERUBYs which have a bug in String#scan

https://git.ruby-lang.org/ruby.git/commit/?id=0957814c27

From 0957814c2776a78e509ceb0aa3fe958d3dc65b2f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 26 Dec 2020 21:47:57 +0900
Subject: Get rid of \K for old BASERUBYs which have a bug in String#scan


diff --git a/tool/leaked-globals b/tool/leaked-globals
index ab9fc99..4979155 100755
--- a/tool/leaked-globals
+++ b/tool/leaked-globals
@@ -17,7 +17,7 @@ config = ARGV.shift https://github.com/ruby/ruby/blob/trunk/tool/leaked-globals#L17
 count = 0
 col = Colorize.new
 config_code = File.read(config)
-REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\(\K\w+/)
+REPLACE = config_code.scan(/\bAC_(?:REPLACE|CHECK)_FUNCS?\((\w+)/).flatten
 REPLACE << 'memcmp' if /\bAC_FUNC_MEMCMP\b/ =~ config_code
 REPLACE.push('main', 'DllMain')
 print "Checking leaked global symbols..."
-- 
cgit v0.10.2


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

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