Skip to content

Conversation

@PierreMacherel
Copy link
Contributor

In Windows OS, ~ may appear inside a path (not at the beginning). So only replace ~ by $HOME if ~ is at the very beginning of the path.
It is more consistent with the string.gsub on next line.

In Windows OS, `~` may appear inside a path (not at the beginning). So only replace `~` by `$HOME` if `~` is at the very beginning of the path
More consistent with the `string.gsub` on next line.
@kkharji kkharji changed the title Fix ~/HOME substitution path chore(utils): handle ~ appearing in middle of path Apr 21, 2024
@kkharji
Copy link
Owner

kkharji commented Apr 21, 2024

I see, indeed. Thanks @PierreMacherel

@kkharji kkharji merged commit d0ffd70 into kkharji:master Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants