1a5acddca2
regexp.MatchString() only returns an error if the pattern can't be parsed. In this case, the pattern is a constant string literal, so unless there's a programming mistake, the pattern should always be parsable and there should never be an error. What really needs to be checked is whether the 'containerName' matched the pattern or not. That's indicated by the bool return value 'matched'. https://github.com/containers/toolbox/pull/639 |
||
---|---|---|
.. | ||
system |