Skip to content

Commit

Permalink
improve(env): allow setting empty var
Browse files Browse the repository at this point in the history
Setting something like `MY_VAR=` is now allowed.
  • Loading branch information
Walheimat committed Sep 7, 2024
1 parent c3cc089 commit fc13de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ship-mate.el
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Parts of a command matching this expression are ignored.")
(defvar-local ship-mate--hidden nil
"Indicates whether a buffer is currently hidden.")

(defvar ship-mate-environment--regex "^\\([a-zA-Z_]\\{1,\\}[a-zA-Z0-9_]+\\)=\\(.+\\)$"
(defvar ship-mate-environment--regex "^\\([a-zA-Z_]\\{1,\\}[a-zA-Z0-9_]+\\)=\\(.+\\)?$"
"Pattern matching an environment variable assignment.")

(defvar ship-mate-command--executor 'funcall)
Expand Down

0 comments on commit fc13de6

Please sign in to comment.