replace + into space character

This commit is contained in:
Kaoru FUZITA 2017-07-27 17:43:51 +09:00 committed by yfujita
parent 762a137f6d
commit b2b33b250a

View file

@ -15,7 +15,7 @@ export default class {
if (tpl.length == 1) {
params[decodeURIComponent(tpl[0])] = '';
} else if (tpl.length == 2) {
params[decodeURIComponent(tpl[0])] = decodeURIComponent(tpl[1]);
params[decodeURIComponent(tpl[0])] = decodeURIComponent(tpl[1].replace(/\+/g, ' '));
}
})
return params;