Skip to content

Commit

Permalink
tappxBidAdapter: update regex errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prebidtappx committed May 26, 2021
1 parent 2e0a301 commit 43c8a7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 43c8a7c

Please sign in to comment.