Skip to content

Commit eb87459

Browse files
committed
chore: simplify regex
1 parent df94870 commit eb87459

File tree

1 file changed

+1
-1
lines changed
  • packages/rtk-query-codegen-openapi/src/bin

1 file changed

+1
-1
lines changed

packages/rtk-query-codegen-openapi/src/bin/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const configFile = program.args[0];
3838
if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
3939
program.help();
4040
} else {
41-
if (/\.[mc]?tsx?$/.test(configFile) && !ts) {
41+
if (/\.c?tsx?$/.test(configFile) && !ts) {
4242
console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.');
4343
process.exit(1);
4444
}

0 commit comments

Comments
 (0)