Commit cd7621d
committed
fix(dlx): normalize paths for cross-platform isInSocketDlx comparison
Fix path comparison in isInSocketDlx() to work correctly on Windows:
- Normalize absolutePath using normalizePath() for consistent forward slashes
- Use '/' separator instead of path.sep for normalized path comparison
- getSocketDlxDir() already returns normalized paths (forward slashes)
- path.resolve() returns platform-specific paths (backslashes on Windows)
Without normalization, Windows paths with backslashes failed to match
the DLX directory path with forward slashes, causing test failures.
Resolves Windows CI test failure: 'should return true for paths within DLX directory'1 parent 5a26525 commit cd7621d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments