Function: auth-source-pass--parse-data
auth-source-pass--parse-data is a byte-compiled function defined in
auth-source-pass.el.gz.
Signature
(auth-source-pass--parse-data CONTENTS)
Documentation
Parse the password-store data in the string CONTENTS and return an alist.
CONTENTS is the contents of a password-store formatted file.
Source Code
;; Defined in /usr/src/emacs/lisp/auth-source-pass.el.gz
(defun auth-source-pass--parse-data (contents)
"Parse the password-store data in the string CONTENTS and return an alist.
CONTENTS is the contents of a password-store formatted file."
(let ((lines (cdr (split-string contents "\n" t "[ \t]+"))))
(seq-remove #'null
(mapcar (lambda (line)
(when-let ((pos (seq-position line ?:)))
(cons (string-trim (substring line 0 pos))
(string-trim (substring line (1+ pos))))))
lines))))