From 527d1a4bbb8d37382b365e0f02221277ca5554bf Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 1 Jul 2019 08:40:49 +0200 Subject: [PATCH] [TEST] FIX Regex REF: #277 Causing False Positive Matching --- .dev-tools/generate-blacklist-testing-of-changes.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.dev-tools/generate-blacklist-testing-of-changes.sh b/.dev-tools/generate-blacklist-testing-of-changes.sh index 5958d8511..481cfc6cc 100755 --- a/.dev-tools/generate-blacklist-testing-of-changes.sh +++ b/.dev-tools/generate-blacklist-testing-of-changes.sh @@ -163,7 +163,7 @@ _action4="3;" printf '%s\n' "${_start1}" >> ${_tmpnginx1} while IFS= read -r LINE do -printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b|)" "${_action1}" >> ${_tmpnginx1} +printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b)" "${_action1}" >> ${_tmpnginx1} done < ${_input1} printf '%s\n' "${_end1}" >> ${_tmpnginx1} mv ${_tmpnginx1} ${_inputdb1} @@ -189,7 +189,7 @@ rm ${_inputdb1} printf '%s\n' "$_start2" >> ${_tmpnginx2} while IFS= read -r LINE do -printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b|)" "$_action2" >> ${_tmpnginx2} +printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b)" "$_action2" >> ${_tmpnginx2} done < ${_input2} printf '%s\n' "$_end2" >> ${_tmpnginx2} mv ${_tmpnginx2} ${_inputdb2} @@ -213,7 +213,7 @@ rm ${_inputdb2} printf '%s\n' "$_start3" >> ${_tmpnginx3} while IFS= read -r LINE do -printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b|)" "$_action3" >> ${_tmpnginx3} +printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b)" "$_action3" >> ${_tmpnginx3} done < ${_input3} printf '%s\n' "$_end3" >> ${_tmpnginx3} mv ${_tmpnginx3} ${_inputdb3} @@ -237,7 +237,7 @@ rm ${_inputdb3} printf '%s\n' "$_start4" >> ${_tmpnginx4} while IFS= read -r LINE do -printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b|)" "$_action4" >> ${_tmpnginx4} +printf '\t"~*%s"\t\t%s\n' "(?:\b)${LINE}(?:\b)" "$_action4" >> ${_tmpnginx4} done < ${_input4} printf '%s\n' "$_end4" >> ${_tmpnginx4} mv ${_tmpnginx4} ${_inputdb4}