aboutsummaryrefslogtreecommitdiff
path: root/src/common.js
diff options
context:
space:
mode:
authoramy <[email protected]>2023-09-01 13:59:10 -0500
committeramy <[email protected]>2023-09-01 13:59:10 -0500
commit04e030f6a0d7250c4c4951ade1b0da07a9a8b689 (patch)
treeaa7bedd62d3a88fb23f7a28ffc201b6968642e4c /src/common.js
parente67af061d1ce087f31828bffe0f4479d82ba00f5 (diff)
better meta parsing (yes im working on this again:3)HEADmain
Diffstat (limited to 'src/common.js')
-rw-r--r--src/common.js12
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 !== "";};