From 0860e16b2b1d334d8e484cb7c2fe00ed198416fb Mon Sep 17 00:00:00 2001 From: nymkappa Date: Fri, 22 Apr 2022 03:25:34 -0400 Subject: [PATCH] Ignore case on coinbase tag regexes --- backend/src/api/blocks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 4402f0d37..eda4c8ab1 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -179,7 +179,8 @@ class Blocks { const regexes: string[] = JSON.parse(pools[i].regexes); for (let y = 0; y < regexes.length; ++y) { - const match = asciiScriptSig.match(regexes[y]); + const regex = new RegExp(regexes[y], 'i'); + const match = asciiScriptSig.match(regex); if (match !== null) { return pools[i]; }