search: move compiled description pattern regex to a field on `RepoSearchJob`
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: tbliu98
This PR adds DescriptionPatterns
as a field of type []*regexp.Regexp
on RepoSearchJob
. Patterns passed to repo:has.description
will be compiled to regex during job construction and populated in this field to avoid compiling regex during job execution.
This field is not yet used. Description pattern regex compilation will be added to the job construction step in the next PR when description match highlighting is added.
Unit tests pass
Push commits to the source branch or add previously merged commits to review them.