Skip to content

Commit

Permalink
Allow to import FunC file in Tact
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed Apr 12, 2024
1 parent 7cde31f commit 9032da8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/project.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ export function useProjectActions() {
let filesToProcess = [file?.path];

projectFiles(projectId).forEach((f) => {
if (f.name.includes('.tact') && !filesToProcess.includes(f.path)) {
if (
/\.(tact|fc|func)$/.test(f.name) &&
!filesToProcess.includes(f.path)
) {
filesToProcess.push(f.path);
}
});
Expand Down

1 comment on commit 9032da8

@rahulyadav-57
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolves #27

Please sign in to comment.