Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
Description
`FindNMatches()` didn't correctly filter out empty match result in `substringSearch()` and hence send back an empty map to user. I don't know if this the desired behavior but a fix to current behavior will make metrics for logviewer easier to implement.
An example of current behavior:
{ "fileOffset": 1, "searchString": "sdf", "matches": [ { "searchString": "sdf", "fileName": "word-count-1-1530815972/6701/worker.log", "matches": [], "port": "6701", "isDaemon": "no", "startByteOffset": 0 } ] }
Desired behavior:
{ "fileOffset": 1, "searchString": "sdf", "matches": [] }
Attachments
Attachments
Issue Links
- links to