git ssb

2+

cel / scuttlebot.io



Commit 394c46b6103e41dd2a7175f90edc5e027936cd0a

Use regex to detect file extensions

Avoids matching vim swapfiles
Charles Lehner committed on 6/11/2016, 9:16:56 PM
Parent: b422f0ea714588ae4cdebd501101b463dfc79b01

Files changed

index.jschanged
index.jsView
@@ -15,9 +15,9 @@
1515 // copy folder structure
1616 // console.log('copying directory')
1717 build.dir(entry.relativePath)
1818 } else if (entry.type == 'file') {
19- if (entry.name.indexOf('.html.js') !== -1 || entry.name.indexOf('.css.js') !== -1) {
19+ if (/\.(html|css).js$/.test(entry.name)) {
2020 // build html/css files
2121 // console.log('building')
2222 buildTemplate(entry)
2323 } else if (entry.name.indexOf('.part.js') !== -1) {

Built with git-ssb-web