diff --git a/tests/disable-scan.pl b/tests/disable-scan.pl index 65f5b03cb6..54d4625ab9 100755 --- a/tests/disable-scan.pl +++ b/tests/disable-scan.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2010 - 2021, Daniel Stenberg, , et al. +# Copyright (C) 2010 - 2022, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -63,7 +63,7 @@ sub scan_file { my ($source)=@_; open F, "<$source"; while() { - if(/(CURL_DISABLE_[A-Z_]+)/g) { + while(s/(CURL_DISABLE_[A-Z_]+)//) { my ($sym)=($1); $file{$sym} = $source; }