alexander-bauer/distru

Prewritten regexes should use regex.MustCompile()

Closed this issue · 0 comments

Prewritten regexes, which are not subject to change or any sort of variability, should be made using regex.MustCompile(). This will cause a runtime panic if they fail to compile, which will never happen if they are not subject to change.