diff options
author | Michael Olson <mwolson@gnu.org> | 2006-04-02 17:50:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-04-02 17:50:00 +0000 |
commit | 29907737af89a046bd8f8e87ef83e7ccae8687ab (patch) | |
tree | 2bfa75da9b5c2365c92eff42af6b588a547c1ca9 /emms-player-mpd.el | |
parent | 6c31e5abefd41045f9325827f6976d790f12fa82 (diff) |
Make sure that negated character classes in regexps include the newline character, so that there is no possibility of empty lines being matched.
darcs-hash:20060402175002-1bfb2-9f7ccf9489b3688d660b612a7243fe42e87e84e7.gz
Diffstat (limited to 'emms-player-mpd.el')
-rw-r--r-- | emms-player-mpd.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el index c59e715..15f02f5 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -311,7 +311,7 @@ Otherwise, it will be nil." (defun emms-player-mpd-parse-line (line) "Turn the given LINE from MusicPD into a cons cell. The format of the cell is (name . value)." - (when (string-match "\\`\\([^:]+\\):\\s-*\\(.+\\)" line) + (when (string-match "\\`\\([^:\n]+\\):\\s-*\\(.+\\)" line) (let ((name (match-string 1 line)) (value (match-string 2 line))) (if (and name value) |