Skip to content

Commit

Permalink
fix Provision to specify urlSafe when idReplacement is true mcollina#320
Browse files Browse the repository at this point in the history
  • Loading branch information
hilanamer committed May 5, 2021
1 parent 8e944c9 commit c047b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/requestIterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ RequestIterator.prototype.rebuildRequest = function () {
data = this.requestBuilder(this.currentRequest, this.context)
if (data) {
this.currentRequest.requestBuffer = this.reqDefaults.idReplacement
? Buffer.from(data.toString().replace(/\[<id>\]/g, hyperid()))
? Buffer.from(data.toString().replace(/\[<id>\]/g, hyperid().replace(/(?!<")\/\*[^*]+\*\/(?!")/g, '')))
: data
} else if (this.currentRequestIndex === 0) {
// when first request fails to build, we can not reset pipeline, or it'll never end
Expand Down

0 comments on commit c047b37

Please sign in to comment.