changeset 2999:e75fdc37100c

mercurial.el: fix hg-chomp.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 22 Aug 2006 11:24:59 -0700
parents e1762867a734
children b6e6d2a9c5bc
files contrib/mercurial.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/mercurial.el	Tue Aug 22 08:54:19 2006 -0700
+++ b/contrib/mercurial.el	Tue Aug 22 11:24:59 2006 -0700
@@ -289,7 +289,7 @@
 
 (defsubst hg-chomp (str)
   "Strip trailing newlines from a string."
-  (hg-replace-in-string str "[\r\n]+\'" ""))
+  (hg-replace-in-string str "[\r\n]+\\'" ""))
 
 (defun hg-run-command (command &rest args)
   "Run the shell command COMMAND, returning (EXIT-CODE . COMMAND-OUTPUT).