Skip to content

Commit

Permalink
chore: simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Jun 6, 2024
1 parent 2e6dcf0 commit 993afd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rtk-query-codegen-openapi/src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const configFile = program.args[0];
if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
program.help();
} else {
if (/\.[mc]?tsx?$/.test(configFile) && !ts) {
if (/\.c?tsx?$/.test(configFile) && !ts) {
console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.');
process.exit(1);
}
Expand Down

0 comments on commit 993afd2

Please sign in to comment.