diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2020-07-13 19:23:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 19:23:15 +0200 |
commit | 3eae25f1865ac50f3c15346699bb677816630074 (patch) | |
tree | c4546522434a8929c624d2557452b0de07bf992e /helm-files.el | |
parent | 5a27dbfa9c875141e2d182d0d310675ab73d425f (diff) | |
parent | 3482a4249bff978455e2680342884f98410ca742 (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.el | 2 |
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))) |