Skip to content

Commit 10171c2

Browse files
committed
fix wrong controller name when filepath includes dot in the middle
1 parent dac4071 commit 10171c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default class Manager {
155155
return;
156156
}
157157

158-
const filePath = docName.substring(0, docName.indexOf('.'));
158+
const filePath = docName.substring(0, docName.lastIndexOf('.'));
159159
const controllerFilePath = filePath + '.ctrl.dart';
160160
const controllerFileName = path.parse(controllerFilePath).base;
161161

0 commit comments

Comments
 (0)