itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

Compile funcMatch Regex only in runtime #230

Open afonsosribeiro opened 11 months ago

afonsosribeiro commented 11 months ago

Why in funcMatch regex only compiled in runtime?

If the regex is constant (which can be known at compile time) the gojq.Compile should compile it just once to avoid compilation of the same regex for multiple inputs.