org: Correct regexp escaping to use regexp-quote

* lisp/org.el (org--confirm-resource-safe): `regexp-opt' was
accidentally used instead of `regexp-quote'.
This commit is contained in:
TEC 2022-07-26 12:22:07 +08:00
parent 6013cb161d
commit 6ad53fa22e
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 1 additions and 1 deletions

View File

@ -4588,7 +4588,7 @@ returns non-nil if any of them match."
(customize-push-and-save
'org-safe-remote-resources
(list (concat "\\`"
(regexp-opt
(regexp-quote
(if (and (= char ?f) current-file)
(concat "file://" current-file) uri))
"\\'"))))