Skip to content

Escape regex metacharacters in install line matching - #161

Open
wangyusheng1985 wants to merge 1 commit into
posener:masterfrom
wangyusheng1985:contribution-133
Open

wangyusheng1985 wants to merge 1 commit into
posener:masterfrom
wangyusheng1985:contribution-133

Conversation

@wangyusheng1985

Copy link
Copy Markdown

Fixes #133.

install compiled the completion line as a regexp without quoting. Windows paths such as C:\Users\... contain \U, which panics regexp.MustCompile.

The line is now quoted with regexp.QuoteMeta before matching and removal.

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.

1 participant