Commit Graph

2 Commits

Author SHA1 Message Date
Nalin Dahyabhai 7d87965738 pkg/regexp: make sure that &Regexp implements the interfaces
Making our exported Regexp type a pointer breaks code that expects to be
able to take its address and call methods on the result.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-06-27 11:23:17 -04:00
Daniel J Walsh b4f7b119c9
Create pkg/regexp to better handle init regex
The new Reexp structure, will handle the initialization of regexp
and then will do the MustCompile within a sync.Once field.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-12 13:19:47 -05:00