Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It was found that the regex for parsing tags had edge cases that would cause it to never finish evaluating. The solution to that at the time was to limit models to an arbitrary number (3) of namespaces. The bug below describes a tag that was created with a model more deeply nested than that (which I have used as a test case). Since there is no number that can be guaranteed to always work, we need a more sophisticated regex that won't loop infinitely while also supporting arbitrarily deep nesting. I've attempted to do that here, while fixing some poorly formed tests that failed to match the new pattern. I will only add that this regex has probably reached the point where it's a burden to maintain, and that we should look into reimplenting a formal parser for fields/tags in the near future. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1524889
- Loading branch information