From 733dd3447e1e739d51b9b1b48a2ad7b57c48de3b Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Tue, 17 Mar 2026 10:58:56 +0100 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Vincenzo Scamporlino --- .../src/lib/preparation/collectPortableTemplateInput.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli-module-new/src/lib/preparation/collectPortableTemplateInput.ts b/packages/cli-module-new/src/lib/preparation/collectPortableTemplateInput.ts index 415774d6ac..fc1e8f083d 100644 --- a/packages/cli-module-new/src/lib/preparation/collectPortableTemplateInput.ts +++ b/packages/cli-module-new/src/lib/preparation/collectPortableTemplateInput.ts @@ -271,8 +271,8 @@ export function ownerPrompt(): DistinctQuestion { }; } -// Reuses the same pattern as namePrompt/pluginIdPrompt but extended to support npm scopes -// Matches: @scope/package-name, @scope/package, package-name, package +// Based on the same pattern as namePrompt/pluginIdPrompt, but extended to support npm scopes +// and additional allowed characters ('.' and '_'). Matches: @scope/package-name, @scope/package, const packageNamePattern = /^[a-z0-9][a-z0-9._-]*$/; const scopedPackageNamePattern = /^@[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._-]*$/;