Skip to content

Commit

Permalink
chore: use a more limiting regex as default for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jun 27, 2024
1 parent cc807e4 commit 3287833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-main/src/routes/-studio/FileExplorer/File.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const File: FC<FileProps> = ({ path, openFile, isDirOpen, active, onClick
moduleId,
name: newFileName,
eventType: 'log',
regex: '\\w',
regex: 'takaro-hook-regex-placeholder',
});
functionId = hook.function.id;
itemId = hook.id;
Expand Down
2 changes: 1 addition & 1 deletion packages/web-main/src/views/ModuleOnboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const ModuleOnboarding: FC<ModuleOnboardingProps> = ({ moduleId }) => {
name: 'my-hook',
eventType: 'log',
moduleId: moduleId!,
regex: '\\w',
regex: 'takaro-hook-regex-placeholder',
});
break;
case 'cronjob':
Expand Down

0 comments on commit 3287833

Please sign in to comment.