Merge pull request #1564 from mempool/nymkappa/bugfix/binance-regex

Ignore case on coinbase tag regexes
This commit is contained in:
wiz 2022-04-25 22:38:49 +00:00 committed by GitHub
commit d701bbb2d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,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];
}