From 280a2407ab9c5db0768e9ebe0e023e6c156b5d7e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Sep 2019 14:11:55 -0400 Subject: [PATCH] Fix doom-load-envvars-file A former regexp consumed the first letter of each environment variable's name. --- core/core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.el b/core/core.el index 293462cb3..b488e48a1 100644 --- a/core/core.el +++ b/core/core.el @@ -421,9 +421,9 @@ in interactive sessions, nil otherwise (but logs a warning)." (let (vars) (with-temp-buffer (insert-file-contents file) - (while (re-search-forward "\n *[^#] *\\([^= \n]+\\)=" nil t) + (while (re-search-forward "\n *\\([^#][^= \n]+\\)=" nil t) (save-excursion - (let ((var (match-string 1)) + (let ((var (string-trim-left (match-string 1))) (value (buffer-substring-no-properties (point) (1- (or (when (re-search-forward "^\\([^= ]+\\)=" nil t)