Skip to content

Commit fcc0944

Browse files
committed
Prefer string-match-p when we only need a boolean result
1 parent d95677a commit fcc0944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec-path-from-shell.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The default value denotes an interactive login shell."
137137

138138
(defun exec-path-from-shell--standard-shell-p (shell)
139139
"Return non-nil iff SHELL supports the standard ${VAR-default} syntax."
140-
(not (string-match "\\(fish\\|nu\\|t?csh\\)$" shell)))
140+
(not (string-match-p "\\(fish\\|nu\\|t?csh\\)$" shell)))
141141

142142
(defmacro exec-path-from-shell--warn-duration (&rest body)
143143
"Evaluate BODY and warn if execution duration exceeds a time limit.

0 commit comments

Comments
 (0)