Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ? in SSH config #150

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Handle ? in SSH config #150

merged 1 commit into from
Oct 9, 2023

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Oct 9, 2023

Fixes #108

Still not sure why it reportedly worked before, as I think this code path has always been taken. Maybe there are certain conditions where parsing the config is skipped but I have not dug deep enough to be sure.

This is still not complete because we are not handling !, other characters like . should be handled literally, and maybe some other things, but it should resolve the immediate issues. We might also want to only parse hosts between the start/end block markers rather than the whole config, but I am not sure on that one.

@code-asher code-asher requested a review from kylecarbs October 9, 2023 22:39
@code-asher code-asher merged commit 5419f62 into main Oct 9, 2023
2 checks passed
@code-asher code-asher deleted the invalid-regex branch October 9, 2023 22:48
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.

syntax error: invalid regular expression /^i-???????$/: nothing to repeat
2 participants