fix(assert): avoid panic on invalid regex in Regexp/NotRegexp (#1794)
Summary Make assert.Regexp / assert.NotRegexp fail the assertion instead of panicking when given an invalid regex pattern.
Changes
Use regexp.Compile (rather than regexp.MustCompile) when compiling user-supplied patterns in assert.
Propagate compile errors so Regexp/NotRegexp report a clear failure message like:
invalid regular expression "
Related issues #1794