From 890834cc91beba53f04dc30c15aaea691308fa14 Mon Sep 17 00:00:00 2001 From: zeus Date: Thu, 10 Dec 2020 23:16:47 +0200 Subject: [PATCH] add rest --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index cc42982..1df6452 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -407,7 +407,7 @@ cors(corsOptions), (req, res, next) => { console.log('-----++++++++++++++++++++++++--- ' + nameofswarmlab) //if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){ - var regexlog = '/'+nameofswarmlab+'/' + var regexlog = new RegExp(nameofswarmlab); if( resdata.data.filter(item1 => regexlog.test(item1.res25swarmlabname))){ resdataarray.push(item[i]) RES.found = item[i]