From 43c8a7c510ce394bac11562523a9c79133aef2f8 Mon Sep 17 00:00:00 2001 From: marc_tappx Date: Wed, 26 May 2021 17:18:31 +0200 Subject: [PATCH] tappxBidAdapter: update regex errors --- modules/tappxBidAdapter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/tappxBidAdapter.js b/modules/tappxBidAdapter.js index cb0d83dcb67..48e0abc5c7f 100644 --- a/modules/tappxBidAdapter.js +++ b/modules/tappxBidAdapter.js @@ -120,7 +120,7 @@ function validBasic(bid) { } let classicEndpoint = true - if ((new RegExp(`^(vz.*|zz.*)\.*$`, 'i')).test(bid.params.host)) { + if ((new RegExp(`^(vz.*|zz.*)\\.*$`, 'i')).test(bid.params.host)) { classicEndpoint = false } @@ -398,8 +398,8 @@ function getHostInfo(validBidRequests) { domainInfo.domain = hostParam.split('/', 1)[0]; - let regexNewEndpoints = new RegExp(`^(vz.*|zz.*)\.pub\.tappx\.com$`, 'i'); - let regexClassicEndpoints = new RegExp(`^([a-z]{3}|testing)\.[a-z]{3}\.tappx\.com$`, 'i'); + let regexNewEndpoints = new RegExp(`^(vz.*|zz.*)\\.[a-z]{3}\\.tappx\\.com$`, 'i'); + let regexClassicEndpoints = new RegExp(`^([a-z]{3}|testing)\\.[a-z]{3}\\.tappx\\.com$`, 'i'); if (regexNewEndpoints.test(domainInfo.domain)) { domainInfo.newEndpoint = true;