linting and cleanup

This commit is contained in:
Ben Phelps committed 2022-09-07 16:53:24 +03:00
1 parent 7f041e8303
commit f74e8b9d32
51 files changed
+464 -349

No files matched your search

+2 -2
View File
@@ -15,13 +15,13 @@ const formats = {
};
export function formatApiCall(api, args) {
const match = /\{.*?\}/g;
const find = /\{.*?\}/g;
const replace = (match) => {
const key = match.replace(/\{|\}/g, "");
return args[key];
};
return formats[api].replace(match, replace);
return formats[api].replace(find, replace);
}
export function formatApiUrl(widget, endpoint) {