Mercurial > emacs
diff lisp/subr.el @ 98942:24d03d4e9afe
(split-string-and-unquote): Simplify regexp.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 20 Oct 2008 17:29:29 +0000 |
parents | 8d3f352dfa8d |
children | ec4e32b94c9f |
line wrap: on
line diff
--- a/lisp/subr.el Mon Oct 20 16:15:56 2008 +0000 +++ b/lisp/subr.el Mon Oct 20 17:29:29 2008 +0000 @@ -2922,7 +2922,7 @@ (split-string-and-unquote (combine-and-quote-strings strs)) == strs The SEPARATOR regexp defaults to \"\\s-+\"." (let ((sep (or separator "\\s-+")) - (i (string-match "[\"]" string))) + (i (string-match "\"" string))) (if (null i) (split-string string sep t) ; no quoting: easy (append (unless (eq i 0) (split-string (substring string 0 i) sep t))