forked from cory/tildefriends
Run prettier.
This commit is contained in:
.prettierrc.yamlREADME.md
apps
admin.json
admin
api.jsonapi
apps.jsonapps
blog.jsonblog
db
follow.jsonfollow
gg.jsongg
identity.jsonidentity
issues.jsonissues
journal.jsonjournal
sneaker.jsonsneaker
ssb.jsonssb
app.jsemojis.jsindex.htmlscript.jstf-app.jstf-compose.jstf-id-picker.jstf-message.jstf-news.jstf-profile.jstf-styles.jstf-tab-connections.jstf-tab-mentions.jstf-tab-news-feed.jstf-tab-news.jstf-tab-query.jstf-tab-search.jstf-tag.jstf-user.jstf-utils.jstribute.css
todo.jsontodo
welcome.jsonwelcome
wiki.jsonwiki
core
docs
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