Skip to content

Commit

Permalink
Use string-suffix-p instead of regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Apr 15, 2017
1 parent abc64bc commit 92e55cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ede-php-autoload/class-loader/psr0.el
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PREFIX is the beginning of the type to complete."
(ede-php-autoload-make-completion
suggestion
;; A bit of a cop out, but right now it's the best option.
(if (string-match-p "\\.php$" file-name) :file :directory)
(if (string-suffix-p "php" file-name t) :file :directory)
(if (equal separator "_")
suggestion
(mapconcat 'identity
Expand Down

0 comments on commit 92e55cf

Please sign in to comment.