Skip to content

Commit 472a05c

Browse files
Copilotalexr00
andauthored
Allow underscores in owner names in URI handler validation
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 11cdfb5 commit 472a05c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/uri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export function fromRepoUri(uri: vscode.Uri): RepoUriParams | undefined {
649649
} catch (e) { }
650650
}
651651

652-
const ownerRegex = /^(?!-)(?!.*--)[a-zA-Z0-9-]+(?<!-)$/;
652+
const ownerRegex = /^(?!-)(?!.*--)[a-zA-Z0-9_-]+(?<!-)$/;
653653
const repoRegex = /^[a-zA-Z0-9_.-]+$/;
654654

655655
function validateOpenWebviewParams(owner?: string, repo?: string, number?: string): boolean {

0 commit comments

Comments
 (0)