Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assert: handle []byte array properly
The regexp package works more efficiently on bytes; if you have bytes, it is easier to pass these directly to assert.Regexp than to convert them to a string first. In addition, FindIndex/FindStringIndex are unnecessary here because we immediately throw away the result - let's just call Match() instead.
- Loading branch information