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 | 04e030f6a0d7250c4c4951ade1b0da07a9a8b689 (patch) | |
tree | aa7bedd62d3a88fb23f7a28ffc201b6968642e4c /src/common.js | |
parent | e67af061d1ce087f31828bffe0f4479d82ba00f5 (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 !== "";}; |