sourcegraph / scip-typescript

SCIP indexer for TypeScript and JavaScript
Apache License 2.0
45 stars 17 forks source link

Fix path normalize check for Windows #350

Closed bulldy80 closed 5 months ago

bulldy80 commented 5 months ago

path.normalize on Windows returns paths with back-slashes (\) instead of forward -slashes (/), which causes the check here to fail.

This change fixes the issue by replacing all the back-slashes with forward-slashes.

Test plan

Ran indexer on Windows and verified the contents of the index file are as expected.