Skip to content

Commit fe564f3

Browse files
committed
Merge pull request #560 from Martii/Issue-484postFix
Post fix for #484 Auto-merge
2 parents d577196 + e9764a0 commit fe564f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ exports.apiAdminUpdate = function (aReq, aRes, aNext) {
372372
postStrats = Object.keys(aReq.body).filter(function (aEl) {
373373
return /\[0\]$/.test(aEl);
374374
}).map(function (aPostStrat) {
375-
var strat = aPostStrat.replace(/\[0\]/, '');
375+
var strat = aPostStrat.replace(/\[0\]$/, '');
376376
return {
377377
name: strat,
378378
id: aReq.body[strat + '[0]'] || '',

0 commit comments

Comments
 (0)