branch: externals/org
commit 6cada29c080a08a0a022b3e1b8bb7c1d2908b0b5
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    org-link-plain-re: Do not allow spaces inside URL
    
    * lisp/ol.el (org-link-make-regexps): Improve plain URL regexp.
    Prohibit all kinds of spaces.
    
    Suggested-by: Max Nikulin <[email protected]>
    Link: https://orgmode.org/list/[email protected]
---
 lisp/ol.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ol.el b/lisp/ol.el
index 93ba9db6d9..ecc8b21463 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -943,7 +943,7 @@ This should be called after the variable 
`org-link-parameters' has changed."
                    (group
                    (1+ (or (regex ,non-space-bracket)
                            ,parenthesis))
-                   (or (regexp "[^[:punct:] \t\n]")
+                   (or (regexp "[^[:punct:][:space:]\n]")
                         ;; Allow "-" punctuation, as an exception
                         ;; See 
https://list.orgmode.org/orgmode/[email protected]/
                         ;; This is also in line with the heuristics

Reply via email to