From 8a8c30878b63f66e8b7eab6a8b1aa0889b9ede9c Mon Sep 17 00:00:00 2001 From: unkin-agent Date: Sat, 14 Nov 2026 18:10:51 +1100 Subject: [PATCH] Name resource_api title pattern groups as Regexp#names does (#20) resource_api names title-pattern captures with `Regexp.new(pattern).names`, which counts only real named groups. w10k matched `(?` anywhere in the source, so an escaped paren, a character class or a comment added names puppet never emits. - scan patterns as Onigmo does: escapes, nested character classes, `(?#...)` and extended-mode comments hold no groups; names stay unique in first-appearance order - skip a pattern whose names or back references fall outside what w10k models (Unicode or hyphenated names, `\g`, forward `\k`) - bump gentypes.Version to 14 Reviewed-on: https://git.unkin.net/unkin/w10k/pulls/20 Co-authored-by: unkin-agent Co-committed-by: unkin-agent