diff --git a/src/startUpdateDependents.ts b/src/startUpdateDependents.ts index d4a188a..76ddbc3 100644 --- a/src/startUpdateDependents.ts +++ b/src/startUpdateDependents.ts @@ -34,11 +34,12 @@ export default async function startUpdateDependents({ cwd }: { cwd: string }) { message: `Ticket to associate with pull requests? (e.g. ON-4323, OB-4323)`, required: true, validate: (input) => { - if (!/^(ON-|OB-)\d+$/.test(input)) { + if (!/^(ON-|OB-)\d+$/i.test(input)) { return 'Ticket must be "ON-" or "OB-" followed by a number' } return true }, + result: (input) => input.toUpperCase(), }) const { isUpdatingTypes } = await enquirer.prompt<{