vrajanap / codesearch

Automatically exported from code.google.com/p/codesearch
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Line missing in read.go #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Queries of the type [Hh]ashTable fail to yield results, where hashTable and 
HashTable each gets results.
It seems like a line is clearly missing in read.go in method:
  func (r *postReader) init(ix, trigram, restrict)
so that the restrict parameter is ignored.

The attached patch adds a test that shows the bug and fixes the problem.

Original issue reported on code.google.com by ugodi...@gmail.com on 15 Apr 2012 at 3:59

Attachments:

GoogleCodeExporter commented 9 years ago
The [Hh]ashtable problem is actually an issue with the regex engine, reported 
and fixed as issue #8.  The "restrict isn't initialized" bug is issue #16, also 
with a patch.

I should poke Russ Cox to release a new version of codesearch, as there are a 
number of patches sitting un-merged on the bug tracker.

Original comment by dgryski on 16 Apr 2012 at 8:53

GoogleCodeExporter commented 9 years ago
Thank you, that would be great!

Original comment by ugodi...@gmail.com on 16 Apr 2012 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by dgryski on 2 May 2012 at 8:54