on master help sign in
Add in trim to catch indented comments
e30f27bChris
scripts/indental.js+1−1
@@ -31,7 +31,7 @@ function indental (data, Type) {
31 }
31 }
32
32
33 function skipLine (line) {
33 function skipLine (line) {
34− return line.trim() !== '' && line.substr(0, 1) !== ';' && line.trim().slice(-1) !== '`'
34+ return line.trim() !== '' && line.trim().substr(0, 1) !== ';' && line.trim().slice(-1) !== '`'
35 }
35 }
36
36
37 const lines = data.split('\n').filter(skipLine).map(makeLine)
37 const lines = data.split('\n').filter(skipLine).map(makeLine)