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

Add a check in apropos var-query-map #666

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

Cartmanishere
Copy link
Contributor

This is a change as described in #530.

In apropos middleware, if no query is passed in the message then a redundant regex is formed.
This is because there is no condition that checks whether the value exists before constructing the regex.

I have added such a check. I have also added a test for this specific case.

@bbatsov
Copy link
Member

bbatsov commented Feb 18, 2020

The change looks good to me. We should also mention it in the changelog.

@Cartmanishere Cartmanishere force-pushed the apropos-query branch 2 times, most recently from a9e0340 to f8f1c9f Compare February 19, 2020 05:37
@Cartmanishere
Copy link
Contributor Author

Cartmanishere commented Feb 19, 2020

Added the pull request in the changelog.

CHANGELOG.md Outdated
@@ -11,6 +11,7 @@
* [#663](https://github.com/clojure-emacs/cider-nrepl/pull/663): Fix non-recognized `recur` inside `case` in the debugger.
* [#664](https://github.com/clojure-emacs/cider-nrepl/pull/664): Fix continue-all in conditional break.
* [#665](https://github.com/clojure-emacs/cider-nrepl/pull/665): Fix form location in map literals.
* [#666](https://github.com/clojure-emacs/cider-nrepl/pull/666): Add a check in apropos var-query-map.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be under master. Add a new "Bugs fixed" section there, as 0.24 was release a few days ago.

@bbatsov bbatsov merged commit 02c0ed0 into clojure-emacs:master Feb 20, 2020
@bbatsov
Copy link
Member

bbatsov commented Feb 20, 2020

Thanks!

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.

3 participants