We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba8ece5 + e9e4e58 commit 817f1d7Copy full SHA for 817f1d7
src/components/Survey/Survey.vue
@@ -339,9 +339,9 @@
339
else if (!val && string.includes('includes')) { // if val is undefined and is supposed to be a list
340
val = `[]`;
341
}
342
- output = output.replace(new RegExp(`\\b${k}\\b`), val);
+ output = output.replaceAll(new RegExp(`\\b${k}\\b`, 'g'), val);
343
} else {
344
- output = output.replace(new RegExp(`\\b${k}\\b`), 0);
+ output = output.replaceAll(new RegExp(`\\b${k}\\b`, 'g'), 0);
345
346
});
347
// console.log(356, output);
0 commit comments