Skip to contentSkip to conversation

docparse: Fix parsing URL containing '|' in links

PATCH New Petr Vorel 2 participants 3 messages May 20, 2021 – May 25, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 docparse: Fix parsing URL containing '|' in links

That fixes formatting for commit in close_range01:
fec8a6a69103 ("close_range: unshare all fds for CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXEC")

---
Hi,

hope this is enough to be escaped.
I tested various:
== \|= # - ## -- ___

Also one day I wrote docparser test :).

Kind regards,
Petr

 docparse/testinfo.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docparse/testinfo.pl +2 -2
index 31148e3a4..6e05982e5 100755
@@ -96,8 +96,8 @@ sub html_a
 {
 	my ($url, $text) = @_;
 
-	# escape ]
-	$text =~ s/([]])/\\$1/g;
+	# escape: ] |
+	$text =~ s/([]|])/\\$1/g;
 
 	return "$url\[$text\]";
 }
Signature · 1 line
2.31.1