branch: elpa/inf-ruby
commit 5f42a70063f980b8922c2a357b40ee48efe3a374
Author: bo-tato <122528427+bo-t...@users.noreply.github.com>
Commit: bo-tato <122528427+bo-t...@users.noreply.github.com>

    make regex a little stricter
---
 inf-ruby.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inf-ruby.el b/inf-ruby.el
index ceefd4d533..88c7c9f9e6 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -663,7 +663,7 @@ This function also removes itself from `pre-command-hook'."
                        (looking-at inf-ruby-first-prompt-pattern)))
         (accept-process-output proc))
       (re-search-backward inf-ruby-prompt-pattern)
-      (or (re-search-forward "=> " (car comint-last-prompt) t)
+      (or (re-search-forward "[ \n]=> " (car comint-last-prompt) t)
           ;; Evaluation seems to have failed.
           ;; Try to extract the error string.
           (let* ((inhibit-field-text-motion t)

Reply via email to