use includes instead of match

This commit is contained in:
Sky Young 2018-05-18 16:05:51 -07:00
parent 240e05a211
commit d71c891add
2 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ BlockController.prototype.getPoolInfo = function(tx) {
strFloData = tx.floData;
for(var k in this.poolStrings) {
if (strFloData.match(k)) {
if (strFloData.includes(k)) {
return this.poolStrings[k];
}
}

View File

@ -1,7 +1,7 @@
{
"name": "flosight-api",
"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",
"bugs": {
"url": "https://github.com/bitpay/flosight-api/issues"