From 10ed4994f59905d82e0ed3150256898f3648501b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 15 Sep 2020 09:50:29 +0200 Subject: [PATCH] table: Fix regexp * lisp/org-table.el (org-table-import): Fix missing leading backslash. Switch to Rx notation for clarity. --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index ed6e203ad..a3c49874c 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -935,7 +935,7 @@ lines. It can have the following values: - regexp When a regular expression, use it to match the separator." (interactive "f\nP") (when (and (called-interactively-p 'any) - (not (string-match-p "\.\\(?:[tc]sv\\|txt\\)$" file))) + (not (string-match-p (rx "." (or "txt" "tsv" "csv") eos) file))) (user-error "Cannot import such file")) (unless (bolp) (insert "\n")) (let ((beg (point))