We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e0c27 commit f677673Copy full SHA for f677673
xs/sources/xsRegExp.c
@@ -863,10 +863,10 @@ void fx_RegExp_prototype_replace(txMachine* the)
863
item = list->next;
864
while (item) {
865
item->value.key.sum = mxStringLength(item->value.string);
866
- size += item->value.key.sum;
+ size = fxAddChunkSizes(the, size, item->value.key.sum);
867
item = item->next;
868
}
869
- size++;
+ size = fxAddChunkSizes(the, size, 1);
870
mxResult->value.string = (txString)fxNewChunk(the, size);
871
size = 0;
872
0 commit comments