Skip to content

Commit a289cf7

Browse files
authored
fix(react-email): Emails parent folder with _ prefix (#1204)
1 parent bfbc0b2 commit a289cf7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/react-email/src/actions/get-emails-directory-metadata.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import fs from 'node:fs';
44
import path from 'node:path';
55

66
const isFileAnEmail = (fullPath: string): boolean => {
7-
const unixFullPath = fullPath.replaceAll(path.sep, '/');
8-
9-
// eslint-disable-next-line prefer-named-capture-group
10-
if (/(\/|^)_[^/]*/.test(unixFullPath)) return false;
11-
127
const stat = fs.statSync(fullPath);
138

149
if (stat.isDirectory()) return false;

0 commit comments

Comments
 (0)