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 <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2026-03-17 10:58:56 +01:00
committed by Patrik Oldsberg
parent e6675123d8
commit 733dd3447e
@@ -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._-]*$/;