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:
parent
d55d0331c7
commit
0957814c27
1 changed files with 1 additions and 1 deletions
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue