We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_
1 parent bfbc0b2 commit a289cf7Copy full SHA for a289cf7
packages/react-email/src/actions/get-emails-directory-metadata.ts
@@ -4,11 +4,6 @@ import fs from 'node:fs';
4
import path from 'node:path';
5
6
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
12
const stat = fs.statSync(fullPath);
13
14
if (stat.isDirectory()) return false;
0 commit comments