forked from cory/tildefriends
Revert "build: Add prettier to the project"
This reverts commit 41024ddb79
.
This commit is contained in:
10
core/form.js
10
core/form.js
@ -4,12 +4,12 @@
|
||||
* @returns
|
||||
*/
|
||||
function decode(encoded) {
|
||||
let result = '';
|
||||
let result = "";
|
||||
for (let i = 0; i < encoded.length; i++) {
|
||||
let c = encoded[i];
|
||||
if (c == '+') {
|
||||
result += ' ';
|
||||
} else if (c == '%') {
|
||||
if (c == "+") {
|
||||
result += " ";
|
||||
} else if (c == "%") {
|
||||
result += String.fromCharCode(parseInt(encoded.slice(i + 1, i + 3), 16));
|
||||
i += 2;
|
||||
} else {
|
||||
@ -41,4 +41,4 @@ function decodeForm(encoded, initial) {
|
||||
return result;
|
||||
}
|
||||
|
||||
export {decodeForm};
|
||||
export { decodeForm };
|
||||
|
Reference in New Issue
Block a user