plumb fileaddr: match with a trailing colon

This commit is contained in:
Sigrid Solveig Haflínudóttir 2023-01-17 13:14:06 +00:00
parent 323a084780
commit bb36ba0617
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,2 @@
addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])'
addr=:($addrelem([,;+\-]$addrelem)*)
addr=:($addrelem([,;+\-]$addrelem)*):?

View file

@ -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-]+)*'