Changeset 38325 in project


Ignore:
Timestamp:
03/22/20 18:18:43 (2 weeks ago)
Author:
sjamaan
Message:

svnwiki-sxml: Fix url regex to allow for protocol-relative urls

Location:
release/5/svnwiki-sxml/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/5/svnwiki-sxml/trunk/svnwiki-sxml.scm

    r35717 r38325  
    572572       ,+bold+ ,+italic+))
    573573(define +ext-url+ '(: (* space)
    574                       (/ "AZaz") (* (or (/ "AZaz09") ("+.-"))) ;; scheme
    575                       "://" (* any)))  ;; FIXME: May need to remove // to support mailto:
     574                      (? (/ "AZaz") (* (or (/ "AZaz09") ("+.-"))) ":") ;; scheme
     575                      "//" (* any)))  ;; FIXME: May need to remove // to support mailto:
    576576
    577577(define *manual-pages* '())
  • release/5/svnwiki-sxml/trunk/tests/run.scm

    r35717 r38325  
    2020(test '((p (link "https://foo"))) (->sxml "[[https://foo]]"))
    2121(test '((p (link "ftp://foo"))) (->sxml "[[ftp://foo]]"))
     22(test '((p (link "//foo"))) (->sxml "[[//foo]]"))
    2223
    2324(test-end "Links")
Note: See TracChangeset for help on using the changeset viewer.