Commit 3bf62a253764d1bba98ca1c421b3cc0a685d4ec2
Fix comment detection
cel committed on 6/28/2020, 12:27:10 PMParent: 0389ecbccd2198e6eb15ba4994eab71e7a9e3b31
Files changed
bin.js | changed |
bin.js | |||
---|---|---|---|
@@ -133,9 +133,9 @@ | |||
133 | 133 … | ||
134 | 134 … | if (urls.length === 0) { | |
135 | 135 … | var pagesFile = path.join(config.path, 'wikimedia-pages.txt') | |
136 | 136 … | var pagesData = fs.readFileSync(pagesFile, 'utf8') | |
137 | - urls = pagesData.split('\n').filter(RegExp.prototype.test.bind(/[^#]/)) | ||
137 … | + urls = pagesData.split('\n').filter(RegExp.prototype.test.bind(/^[^#]/)) | ||
138 | 138 … | if (!urls.length) { | |
139 | 139 … | console.log('No pages to sync.') | |
140 | 140 … | return sbot.close() | |
141 | 141 … | } |
Built with git-ssb-web