summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-09-15 09:51:56 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-09-15 09:51:56 +0200
commit354461be8f41a5585dc2678a2a7d2e425632407e (patch)
tree861d80972ebf3542734f7e40053352090ac4b5a1
parente6021bc9b18982b30dd61417d98276b2984892cd (diff)
parent10ed4994f59905d82e0ed3150256898f3648501b (diff)
downloadorg-mode-354461be8f41a5585dc2678a2a7d2e425632407e.tar.gz
Merge branch 'maint' into master
-rw-r--r--lisp/org-table.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el
index ed6e203..a3c4987 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))