We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d577196 + e9764a0 commit fe564f3Copy full SHA for fe564f3
1 file changed
controllers/admin.js
@@ -372,7 +372,7 @@ exports.apiAdminUpdate = function (aReq, aRes, aNext) {
372
postStrats = Object.keys(aReq.body).filter(function (aEl) {
373
return /\[0\]$/.test(aEl);
374
}).map(function (aPostStrat) {
375
- var strat = aPostStrat.replace(/\[0\]/, '');
+ var strat = aPostStrat.replace(/\[0\]$/, '');
376
return {
377
name: strat,
378
id: aReq.body[strat + '[0]'] || '',
0 commit comments