@@ -746,7 +746,7 @@ export const composeHandler = ({
746
746
} else {
747
747
fnLiteral +=
748
748
'if(c.qi!==-1){' +
749
- `let url = '&' + decodeURIComponent(c.url.slice(c.qi + 1))\n`
749
+ `let url = '&' + decodeURIComponent(c.url.slice(c.qi + 1).replaceAll('+', ' ') )\n`
750
750
751
751
let index = 0
752
752
for ( const {
@@ -774,8 +774,8 @@ export const composeHandler = ({
774
774
`else\n` +
775
775
`a${ index } +=','\n` +
776
776
`let temp\n` +
777
- `if(memory===-1)temp=decodeURIComponent(url.slice(start).replace(/\\+/g,' ') )\n` +
778
- `else temp=decodeURIComponent(url.slice(start, memory).replace(/\\+/g,' ') )\n` +
777
+ `if(memory===-1)temp=decodeURIComponent(url.slice(start))\n` +
778
+ `else temp=decodeURIComponent(url.slice(start, memory))\n` +
779
779
`const charCode = temp.charCodeAt(0)\n` +
780
780
`if(charCode !== 91 && charCode !== 123)\n` +
781
781
`temp='"'+temp+'"'\n` +
@@ -798,10 +798,10 @@ export const composeHandler = ({
798
798
`if(a${ index } ===undefined)` +
799
799
`a${ index } =[]\n` +
800
800
`if(memory===-1){` +
801
- `a${ index } .push(decodeURIComponent(url.slice(start)).replace(/\\+/g,' ') )\n` +
801
+ `a${ index } .push(decodeURIComponent(url.slice(start)))\n` +
802
802
`break` +
803
803
`}` +
804
- `else a${ index } .push(decodeURIComponent(url.slice(start, memory)).replace(/\\+/g,' ') )\n` +
804
+ `else a${ index } .push(decodeURIComponent(url.slice(start, memory)))\n` +
805
805
`memory=url.indexOf('&${ key } =',memory)\n` +
806
806
`if(memory===-1) break\n` +
807
807
`}`
@@ -811,8 +811,8 @@ export const composeHandler = ({
811
811
`if(memory!==-1){` +
812
812
`const start=memory+${ key . length + 2 } \n` +
813
813
`memory=url.indexOf('&',start)\n` +
814
- `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start).replace(/\\+/g,' ') )` +
815
- `else a${ index } =decodeURIComponent(url.slice(start,memory).replace(/\\+/g,' ') )` +
814
+ `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start))` +
815
+ `else a${ index } =decodeURIComponent(url.slice(start,memory))` +
816
816
`if(a${ index } !==undefined)` +
817
817
`try{` +
818
818
`a${ index } =JSON.parse(a${ index } )` +
@@ -825,9 +825,9 @@ export const composeHandler = ({
825
825
`if(memory!==-1){` +
826
826
`const start=memory+${ key . length + 2 } \n` +
827
827
`memory=url.indexOf('&',start)\n` +
828
- `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start).replace(/\\+/g,' ') )\n` +
828
+ `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start))\n` +
829
829
`else{` +
830
- `a${ index } =decodeURIComponent(url.slice(start,memory).replace(/\\+/g,' ') )`
830
+ `a${ index } =decodeURIComponent(url.slice(start,memory))`
831
831
832
832
if ( anyOf )
833
833
fnLiteral +=
@@ -840,8 +840,8 @@ export const composeHandler = ({
840
840
`if(first)first=false\n` +
841
841
`else deepMemory = url.indexOf('&', start)\n` +
842
842
`let value\n` +
843
- `if(deepMemory===-1)value=decodeURIComponent(url.slice(start).replace(/\\+/g,' ') )\n` +
844
- `else value=decodeURIComponent(url.slice(start, deepMemory).replace(/\\+/g,' ') )\n` +
843
+ `if(deepMemory===-1)value=decodeURIComponent(url.slice(start))\n` +
844
+ `else value=decodeURIComponent(url.slice(start, deepMemory))\n` +
845
845
`const vStart=value.charCodeAt(0)\n` +
846
846
`const vEnd=value.charCodeAt(value.length - 1)\n` +
847
847
`if((vStart===91&&vEnd===93)||(vStart===123&&vEnd===125))\n` +
0 commit comments