Skip to content

Commit

Permalink
Update inference regex
Browse files Browse the repository at this point in the history
Co-authored-by: Santiago Bosio <santiago.bosio@gmail.com>
  • Loading branch information
zwhitfield3 and sbosio authored Nov 12, 2024
1 parent 2a642ee commit 2ceda99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/addons/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Create extends Command {
const argv = (restParse.argv as string[])
// oclif duplicates specified args in argv
.filter(arg => arg !== servicePlan)
const inferenceRegex = /heroku-inference.*/
const inferenceRegex = /^heroku-inference/
const isInferenceAddon = inferenceRegex.test(servicePlan)

if (restParse.nonExistentFlags && restParse.nonExistentFlags.length > 0) {
Expand Down

0 comments on commit 2ceda99

Please sign in to comment.