Merge pull request #3083 from stuartpb/patch-1

Group regex within anchoring
This commit is contained in:
Jeff Regan
2020-10-14 08:34:28 -07:00
committed by GitHub

View File

@@ -514,7 +514,7 @@ func anchorRegex(pattern string) string {
if pattern == "" {
return pattern
}
return "^" + pattern + "$"
return "^(?:" + pattern + ")$"
}
// Select returns a list of resources that