Преглед на файлове

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 години
родител
ревизия
6ad53fa22e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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))
                            "\\'"))))