Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fix: update regex for github username
Browse files Browse the repository at this point in the history
now case insensitive
  • Loading branch information
Sibz authored Mar 2, 2021
1 parent 094cd1b commit 318b1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makeStatusRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type StatusRequest = RequestParameters & Pick<any, "owner" | "repo" | "st
export const ERR_INVALID_OWNER = "Input 'owner' must be a valid GitHub username";
export const ERR_INVALID_STATE = "Input 'state' must be one of success | error | failure | pending";

const regExUsername = /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/;
const regExUsername = /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i;

export default function makeStatusRequest(testCore: any | null = null): StatusRequest {
let core: CoreActionsForTesting =
Expand Down

0 comments on commit 318b1c1

Please sign in to comment.