From 92e55cf97d73f65df93f90c2415122be83d6ceef Mon Sep 17 00:00:00 2001 From: Thomas Fini Hansen Date: Sat, 15 Apr 2017 21:56:28 +0200 Subject: [PATCH] Use string-suffix-p instead of regexp --- ede-php-autoload/class-loader/psr0.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ede-php-autoload/class-loader/psr0.el b/ede-php-autoload/class-loader/psr0.el index 1b0c8d3..badddd0 100644 --- a/ede-php-autoload/class-loader/psr0.el +++ b/ede-php-autoload/class-loader/psr0.el @@ -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