From 4f7584e7a337cf2da7b2768d006fc83f4d5e413e Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Thu, 7 Jan 2021 12:09:46 -0500 Subject: [PATCH] Allow freestanding lib script regex to detect XXH64( --- contrib/freestanding_lib/freestanding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/freestanding_lib/freestanding.py b/contrib/freestanding_lib/freestanding.py index f8f20694..32d4fcbe 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)