ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.7k stars 383 forks source link

Compile regex once instead of each time function is called. #277

Closed nanohard closed 6 years ago

nanohard commented 6 years ago

Tested, regex replace still works on file uploads as intended.

nilslice commented 6 years ago

@nanohard - apologies for the delay.. I had let this slip by, and then left for vacation :-/ thank you for the PR!