aboutsummaryrefslogtreecommitdiff
path: root/src/common.js
diff options
context:
space:
mode:
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 !== "";};