diff options
author | amy <[email protected]> | 2023-09-01 13:59:10 -0500 |
---|---|---|
committer | amy <[email protected]> | 2023-09-01 13:59:10 -0500 |
commit | ebced9b5bf6ecfeb6383ae93451bba9175c901c1 (patch) | |
tree | f2734fae42309343393cfc1f58d6cfc12787108c /src/common.js | |
parent | c67174f2ae673fb1fba290538f2ff97fbc6ea62a (diff) |
Diffstat (limited to 'src/common.js')
-rw-r--r-- | src/common.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common.js b/src/common.js index 3c8fcb4..d6e187b 100644 --- a/src/common.js +++ b/src/common.js @@ -10,6 +10,18 @@ function appendHtml(el, str) { } } +function meta_parse(inp){ + inp = inp.split(" ") + inp.shift() + inp = inp.join(" ").split(",") + //console.log(inp) + let r = {}; + for(let i of inp){ + i = i.trim() + r[i.split(" ")[0]] = i.split(" ")[1]; + } + return r +} const rem_emp = function (e) {return e !== "";}; |