Commit c8643ed
committed
refactor(@angular/build): use path.posix.basename for dotfile check
Apply Gemini Code Assist suggestion: use basename from node:path/posix
instead of manual string manipulation. This is more readable and
correctly handles trailing slashes (e.g., /.env/ -> .env).
Made-with: Cursor1 parent 8c1a129 commit c8643ed
File tree
1 file changed
+2
-1
lines changed- packages/angular/build/src/tools/vite/middlewares
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments