From: senhuang42 Date: Thu, 7 Jan 2021 17:09:46 +0000 (-0500) Subject: Allow freestanding lib script regex to detect XXH64( X-Git-Tag: v1.4.9^2~29^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7584e7a337cf2da7b2768d006fc83f4d5e413e;p=thirdparty%2Fzstd.git Allow freestanding lib script regex to detect XXH64( --- diff --git a/contrib/freestanding_lib/freestanding.py b/contrib/freestanding_lib/freestanding.py index f8f206944..32d4fcbea 100755 --- a/contrib/freestanding_lib/freestanding.py +++ b/contrib/freestanding_lib/freestanding.py @@ -576,7 +576,7 @@ class Freestanding(object): ) if self._xxh64_prefix is not None: replacements.append( - (re.compile(r"([^\w]|^)(?PXXH64)_"), self._xxh64_prefix) + (re.compile(r"([^\w]|^)(?PXXH64)[\(_]"), self._xxh64_prefix) ) for filepath in self._dst_lib_file_paths(): file = FileLines(filepath)