We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae885ad commit 5b3b01cCopy full SHA for 5b3b01c
index.js
@@ -42,7 +42,7 @@ const getWslDrivesMountPoint = (() => {
42
}
43
44
const configContent = await fs.readFile(configFilePath, {encoding: 'utf8'});
45
- const configMountPoint = /root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
46
47
if (!configMountPoint) {
48
return defaultMountPoint;
0 commit comments