Jelajahi Sumber

org: Correct regexp escaping to use regexp-quote

* lisp/org.el (org--confirm-resource-safe): `regexp-opt' was
accidentally used instead of `regexp-quote'.
TEC 2 tahun lalu
induk
melakukan
6ad53fa22e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -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))
                            "\\'"))))