build: Add prettier to the project

This commit is contained in:
2024-02-22 15:36:45 +01:00
parent 17b92126de
commit 41024ddb79
95 changed files with 4237 additions and 2117 deletions

View File

@ -1,10 +1,10 @@
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 {
@ -30,4 +30,4 @@ function decodeForm(encoded, initial) {
return result;
}
export { decodeForm };
export {decodeForm};