From c15daf9d6d6f0b459414e28a8cb5693e51bb3d37 Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 5 Nov 2025 17:36:53 +0100 Subject: [PATCH] Regex capture groups (#275609) --- .github/copilot-instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index d3e08231baf..24500c211f2 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -133,3 +133,4 @@ function f(x: number, y: string): void { } - If you create any temporary new files, scripts, or helper files for iteration, clean up these files by removing them at the end of the task - Do not use `any` or `unknown` as the type for variables, parameters, or return values unless absolutely necessary. If they need type annotations, they should have proper types or interfaces defined. - Never duplicate imports. Always reuse existing imports if they are present. +- Prefer regex capture groups with names over numbered capture groups.