sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.18k stars 219 forks source link

WSL: Ignore commented mount point lines in wsl.conf #247

Closed haroonrafi closed 3 years ago

haroonrafi commented 3 years ago

The mount point is detected by reading wsl.conf (PR #219), but the regex does not ignore commented lines (see #246). This PR adds a negative lookbehind for lines starting with a hash character.

Fixes #246