mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 09:39:17 +01:00
Ignore case on coinbase tag regexes
This commit is contained in:
parent
e8d6872620
commit
0860e16b2b
1 changed files with 2 additions and 1 deletions
|
@ -179,7 +179,8 @@ class Blocks {
|
||||||
|
|
||||||
const regexes: string[] = JSON.parse(pools[i].regexes);
|
const regexes: string[] = JSON.parse(pools[i].regexes);
|
||||||
for (let y = 0; y < regexes.length; ++y) {
|
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) {
|
if (match !== null) {
|
||||||
return pools[i];
|
return pools[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue