use includes instead of match
This commit is contained in:
parent
240e05a211
commit
d71c891add
@ -348,7 +348,7 @@ BlockController.prototype.getPoolInfo = function(tx) {
|
|||||||
strFloData = tx.floData;
|
strFloData = tx.floData;
|
||||||
|
|
||||||
for(var k in this.poolStrings) {
|
for(var k in this.poolStrings) {
|
||||||
if (strFloData.match(k)) {
|
if (strFloData.includes(k)) {
|
||||||
return this.poolStrings[k];
|
return this.poolStrings[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "flosight-api",
|
"name": "flosight-api",
|
||||||
"description": "A Florincoin blockchain REST and web socket API service for Flocore Node.",
|
"description": "A Florincoin blockchain REST and web socket API service for Flocore Node.",
|
||||||
"version": "5.0.0-beta.57",
|
"version": "5.0.0-beta.58",
|
||||||
"repository": "git://github.com/bitpay/flosight-api.git",
|
"repository": "git://github.com/bitpay/flosight-api.git",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/flosight-api/issues"
|
"url": "https://github.com/bitpay/flosight-api/issues"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user