Skip to content

Commit

Permalink
Update e-planning bid adapter regexp (#3445)
Browse files Browse the repository at this point in the history
* Add eplanningBidAdapter

* Add new parameter to request

* Fix sync URL parameter

* Update cleanName regexp

* Update tests for new cleanName
  • Loading branch information
Nistenf authored and harpere committed Jan 16, 2019
1 parent 78f2d22 commit 42cd7ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/eplanningBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const spec = {
}

function cleanName(name) {
return name.replace(/_|\.|-|\//g, '').replace(/\)\(|\(|\)/g, '_').replace(/^_+|_+$/g, '');
return name.replace(/_|\.|-|\//g, '').replace(/\)\(|\(|\)|:/g, '_').replace(/^_+|_+$/g, '');
}
function getUrlConfig(bidRequests) {
if (isTestRequest(bidRequests)) {
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/eplanningBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import * as utils from 'src/utils';
describe('E-Planning Adapter', function () {
const adapter = newBidder('spec');
const CI = '12345';
const ADUNIT_CODE = 'adunit-code';
const ADUNIT_CODE = 'adunit-co:de';
const ADUNIT_CODE2 = 'adunit-code-dos';
const CLEAN_ADUNIT_CODE2 = 'adunitcodedos';
const CLEAN_ADUNIT_CODE = 'adunitcode';
const CLEAN_ADUNIT_CODE = 'adunitco_de';
const BID_ID = '123456789';
const BID_ID2 = '987654321';
const CPM = 1.3;
Expand Down

0 comments on commit 42cd7ae

Please sign in to comment.