Commit d7c8196c authored by Noam Postavsky's avatar Noam Postavsky

Fix dired-omit-files regexp (Bug#35668)

* lisp/dired-x.el (dired-omit-files): Match beginning and end of
string, rather than beginning and end of line.
parent d0e9113d
Pipeline #1733 failed with stage
in 51 minutes and 12 seconds
......@@ -159,7 +159,7 @@ See Info node `(dired-x) Omitting Variables' for more information."
(put 'dired-omit-mode 'safe-local-variable 'booleanp)
(defcustom dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$"
(defcustom dired-omit-files "\\`[.]?#\\|\\`[.][.]?\\'"
"Filenames matching this regexp will not be displayed.
This only has effect when `dired-omit-mode' is t. See interactive function
`dired-omit-mode' (\\[dired-omit-mode]) and variable
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment