on master help sign in
Remove extra filter
e6d3b5eDevine Lu Linvega
links/main.css−3
@@ -87,6 +87,3 @@ body #wiki ul.term li { margin-bottom: 5px }
87body #wiki ul.term li.name { margin-bottom: 5px }
87body #wiki ul.term li.name { margin-bottom: 5px }
88body #wiki ul.term li a.author { color:#555; text-decoration: none !important; }
88body #wiki ul.term li a.author { color:#555; text-decoration: none !important; }
89
89
90−
91−
92−
scripts/wiki.js+1−4
@@ -127,7 +127,7 @@ function Wiki (sites) {
127
127
128 this.parse = (site, content) => {
128 this.parse = (site, content) => {
129 console.log('Wiki', 'Parsing ' + site.wiki)
129 console.log('Wiki', 'Parsing ' + site.wiki)
130− const cats = indental(this.filter(content))
130+ const cats = indental(content)
131 for (const cat in cats) {
131 for (const cat in cats) {
132 const terms = cats[cat]
132 const terms = cats[cat]
133 for (const name in terms) {
133 for (const name in terms) {
@@ -136,8 +136,5 @@ function Wiki (sites) {
136 }
136 }
137 }
137 }
138
138
139− this.filter = (lines) => {
140− return lines.split('\n').filter((line) => { return line.indexOf(' = `') < 0 && line.trim().length > 1 }).join('\n')
141− }
142 String.prototype.toUrl = function () { return this.toLowerCase().replace(/ /g, '+').replace(/[^0-9a-z\+\:\-\.\/\~]/gi, '').trim() }
139 String.prototype.toUrl = function () { return this.toLowerCase().replace(/ /g, '+').replace(/[^0-9a-z\+\:\-\.\/\~]/gi, '').trim() }
143}
140}