summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 17b4a6504db..bf7d34e2227 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3188,7 +3188,7 @@ we do not remove backup version numbers, only true file version numbers."
(length name))
(if keep-backup-version
(length name)
- (or (string-match "\\.~[-0-9a-z.]+~\\'" name)
+ (or (string-match "\\.~[-0-9a-z._]+~\\'" name)
(string-match "~\\'" name)
(length name))))))))