From d71c891add7a49846561dab459315b836f66618f Mon Sep 17 00:00:00 2001 From: Sky Young Date: Fri, 18 May 2018 16:05:51 -0700 Subject: [PATCH] use includes instead of match --- lib/blocks.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blocks.js b/lib/blocks.js index 352053d..55acd91 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -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]; } } diff --git a/package.json b/package.json index 0e3bfd5..9943b2e 100644 --- a/package.json +++ b/package.json @@ -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"