| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | decodeURIComponent( |
| 14 | 14 | document.cookie.replace( |
| 15 | 15 | new RegExp( |
| 16 | 16 | '(?:(?:^|.*;)\\s*' + |
| 17 | - encodeURIComponent( e ).replace( /[\-\.\+\*]/g, '\\$&' ) + | |
| 17 | + encodeURIComponent( e ).replace( /[-.+*]/g, '\\$&' ) + | |
| 18 | 18 | '\\s*\\=\\s*([^;]*).*$)|^.*$' |
| 19 | 19 | ), |
| 20 | 20 | '$1' |
| 21 | 21 | ) |
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | null |
| 24 | 24 | ); |
| 25 | 25 | }, |
| 26 | 26 | setItem: function ( e, o, n, t, r, i ) { |
| 27 | - if ( ! e || /^(?:expires|max\-age|path|domain|secure)$/i.test( e ) ) { | |
| 27 | + if ( ! e || /^(?:expires|max-age|path|domain|secure)$/i.test( e ) ) { | |
| 28 | 28 | return ! 1; |
| 29 | 29 | } |
| 30 | 30 | var c = ''; |
| 31 | 31 | if ( n ) { |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | ( r ? '; domain=' + r : '' ) + |
| 54 | 54 | ( t ? '; path=' + t : '' ) + |
| 55 | 55 | ( i ? '; secure' : '' ) ), |
| 56 | 56 | ! 0 |
| 57 | - ); | |
| 57 | + ); | |
| 58 | 58 | }, |
| 59 | 59 | }; |
| 60 | 60 | |
| 61 | 61 | // Implement IAB USP API. |
| @@ -313,10 +313,23 @@ | ||
| 313 | 313 | // Got a geo response. Parse out the region data. |
| 314 | 314 | var data = JSON.parse( this.response ); |
| 315 | 315 | var region = data.region ? data.region.toLowerCase() : ''; |
| 316 | 316 | var ccpaApplies = |
| 317 | - [ 'california', 'colorado', 'connecticut', 'utah', 'virginia' ].indexOf( region ) > | |
| 318 | - -1; | |
| 317 | + [ | |
| 318 | + 'california', | |
| 319 | + 'colorado', | |
| 320 | + 'connecticut', | |
| 321 | + 'delaware', | |
| 322 | + 'indiana', | |
| 323 | + 'iowa', | |
| 324 | + 'montana', | |
| 325 | + 'new jersey', | |
| 326 | + 'oregon', | |
| 327 | + 'tennessee', | |
| 328 | + 'texas', | |
| 329 | + 'utah', | |
| 330 | + 'virginia', | |
| 331 | + ].indexOf( region ) > -1; | |
| 319 | 332 | |
| 320 | 333 | // Set CCPA applies cookie. This keeps us from having to make a geo request too frequently. |
| 321 | 334 | setCcpaAppliesCookie( ccpaApplies ); |
| 322 | 335 | |