Reference: Antonboom/testifylint#81 (comment)
The Regexp and NotRegexp assertions accept interface{} for the rx (expression) argument. This is insane but we can't change it because it would be a breaking change. The documentation for these functions should be changed to explain that the value should be a *regexp.Regexp, but that if any other type is provided then the %v format of the value will be compiled as a new expression.
Reference: Antonboom/testifylint#81 (comment)
The
RegexpandNotRegexpassertions acceptinterface{}for the rx (expression) argument. This is insane but we can't change it because it would be a breaking change. The documentation for these functions should be changed to explain that the value should be a*regexp.Regexp, but that if any other type is provided then the%vformat of the value will be compiled as a new expression.