atom/scandal

scan bug, can not find results

Closed this issue · 0 comments

After report bug in atom/atom#3855, and atom/find-and-replace#292 (comment),
I found it is the scandal bug.
My test case is:

PathSearcher = require('scandal').PathSearcher;

searcher = new PathSearcher();

searcher.on('results-found', function(result) {
  return console.log("Single Path's Results", result);
});

searcher.searchPath(/get_length/gi, '/Users/yongkangchen/Desktop/bug/no.lua', function(result) {
  return console.log('Done Searching', result);
});

And my test file is:
https://drive.google.com/file/d/0B8i7zRr2bfCAN0VQRUh5bjB2YjA/view?usp=sharing