summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorVitalie Spinu <spinuvit@gmail.com>2014-10-27 13:31:08 -0700
committerVitalie Spinu <spinuvit@gmail.com>2014-10-27 21:29:03 -0700
commit59a6b5cf309c55ad623cd0fdeaf9dbd15358c49b (patch)
tree9b7ae4b04ec3a40f3030e890da4f36285b9f3c97 /cider.el
parent9d5a280ba009a908dc6caca958be27b629aea0eb (diff)
[Fix #860] Use non-gready .+ in `cider-ps-running-nrepl-path-regexp-list`
... and allow white spaces in pwd paths
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/cider.el b/cider.el
index f475a171..158b487c 100644
--- a/cider.el
+++ b/cider.el
@@ -96,8 +96,8 @@ This variable is used by `cider-connect'."
"Process snapshot command used in `cider-locate-running-nrepl-ports'.")
(defvar cider-ps-running-nrepl-path-regexp-list
- '("\\(?:leiningen.original.pwd=\\)\\([^ ]+\\)"
- "\\(?:-classpath +:?\\(.+\\)/self-installs\\)")
+ '("\\(?:leiningen.original.pwd=\\)\\(.+?\\) -D"
+ "\\(?:-classpath +:?\\(.+?\\)/self-installs\\)")
"Regexp list to extract project paths from output of `cider-ps-running-nrepls-command'.
Sub-match 1 must be the project path.")