Name resource_api title pattern groups as Regexp#names does #20
Reference in New Issue
Block a user
Delete Branch "benvin/gentypes-guard-titlepatterns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
resource_api names title-pattern captures with
Regexp.new(pattern).names, which counts only real named groups. w10k matched(?<name>anywhere in the source, so an escaped paren, a character class or a comment added names puppet never emits.(?#...)and extended-mode comments hold no groups; names stay unique in first-appearance order\g, forward\k)