VividCortex / siesta

Composable framework for writing HTTP handlers in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't use MustCompile() for dynamically built regexes

gkristic opened this issue · comments

This is a follow up on #15. The use of MustCompile() for a regular expression can easily crash an application. I suggest using Compile() instead and handling the error appropriately.

There's work to remove regular expressions completely: #14

Okay. If that's ongoing work then this issue makes no sense. Closing!