shithub: riscv

Download patch

ref: bb36ba0617b5aa8263ea9b5ece8c1a5249fedc86
parent: 323a084780a3c0caf210e219b14725b4700175cc
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Jan 17 08:14:06 EST 2023

plumb fileaddr: match with a trailing colon

--- a/sys/lib/plumb/fileaddr
+++ b/sys/lib/plumb/fileaddr
@@ -1,3 +1,2 @@
 addrelem='((#?[0-9]+)|(/[A-Za-z0-9_\^]+/?)|[.$])'
-addr=:($addrelem([,;+\-]$addrelem)*)
-
+addr=:($addrelem([,;+\-]$addrelem)*):?
--- a/sys/man/6/plumb
+++ b/sys/man/6/plumb
@@ -344,7 +344,7 @@
 # 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-]+)*'