Skip to content

Commit 74e023a

Browse files
committed
bug fix
1 parent dac4071 commit 74e023a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "XML Layout for Flutter",
44
"description": "XML Layout for Flutter. Brings Angular's style to Flutter!",
55
"publisher": "WaseemDev",
6-
"version": "0.0.30",
6+
"version": "0.0.31",
77
"icon": "images/logo.png",
88
"repository": {
99
"type": "github",

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)