summaryrefslogtreecommitdiff
path: root/helm-files.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2020-07-13 19:23:15 +0200
committerGitHub <noreply@github.com>2020-07-13 19:23:15 +0200
commit3eae25f1865ac50f3c15346699bb677816630074 (patch)
treec4546522434a8929c624d2557452b0de07bf992e /helm-files.el
parent5a27dbfa9c875141e2d182d0d310675ab73d425f (diff)
parent3482a4249bff978455e2680342884f98410ca742 (diff)
Merge pull request #2338 from d125q/master
Do not highlight a sequence of 0’s as a file extension
Diffstat (limited to 'helm-files.el')
-rw-r--r--helm-files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-files.el b/helm-files.el
index 873d19b7..75126ffe 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -3719,7 +3719,7 @@ return directly CANDIDATES."
(defsubst helm-ff-file-extension (file)
"Returns FILE extension if it is not a number."
(helm-aif (file-name-extension file)
- (and (not (string= "0" it))
+ (and (not (string-match "\\`0+\\'" it))
(zerop (string-to-number it))
it)))