mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
plumb fileaddr: match with a trailing colon
This commit is contained in:
parent
323a084780
commit
bb36ba0617
2 changed files with 2 additions and 3 deletions
|
@ -1,3 +1,2 @@
|
|||
addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])'
|
||||
addr=:($addrelem([,;+\-]$addrelem)*)
|
||||
|
||||
addr=:($addrelem([,;+\-]$addrelem)*):?
|
||||
|
|
|
@ -344,7 +344,7 @@ The following is a modest, representative file of plumbing rules.
|
|||
# these are generally in order from most specific to least,
|
||||
# since first rule that fires wins.
|
||||
|
||||
addr=':(#?[0-9]+)'
|
||||
addr=':(#?[0-9]+):?'
|
||||
protocol='(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais)'
|
||||
domain='[a-zA-Z0-9_@]+([.:][a-zA-Z0-9_@]+)*/?[a-zA-Z0-9_?,%#~&/\e-]+'
|
||||
file='([:.][a-zA-Z0-9_?,%#~&/\e-]+)*'
|
||||
|
|
Loading…
Reference in a new issue