1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Get rid of \K for old BASERUBYs which have a bug in String#scan

This commit is contained in:
Nobuyoshi Nakada 2020-12-26 21:47:57 +09:00
parent d55d0331c7
commit 0957814c27
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -17,7 +17,7 @@ config = ARGV.shift
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..."