Skip to content

Commit 6ad53fa

Browse files
committed
org: Correct regexp escaping to use regexp-quote
* lisp/org.el (org--confirm-resource-safe): `regexp-opt' was accidentally used instead of `regexp-quote'.
1 parent 6013cb1 commit 6ad53fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/org.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4588,7 +4588,7 @@ returns non-nil if any of them match."
45884588
(customize-push-and-save
45894589
'org-safe-remote-resources
45904590
(list (concat "\\`"
4591-
(regexp-opt
4591+
(regexp-quote
45924592
(if (and (= char ?f) current-file)
45934593
(concat "file://" current-file) uri))
45944594
"\\'"))))

0 commit comments

Comments
 (0)