emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/org 6de5431acc: org: Refactor rx to concat + regexp


From: Stefan Monnier
Subject: Re: [elpa] externals/org 6de5431acc: org: Refactor rx to concat + regexp-opt
Date: Sun, 24 Jul 2022 12:03:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>               'org-safe-remote-resources
> -             (list (rx string-start
> -                       (literal
> -                        (if (and (= char ?f) current-file)
> -                            (concat "file://" current-file) uri))
> -                       string-end))))
> +             (list (concat "\\`"
> +                           (regexp-opt
> +                            (if (and (= char ?f) current-file)
> +                                (concat "file://" current-file) uri))
> +                           "\\'"))))

Did you mean to use `regexp-quote` instead of `regexp-opt`, maybe?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]