From 222571f8fd71c41d7b7e0b433de923d1d6ff1e55 Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Wed, 2 Jun 2021 17:46:02 +0200 Subject: re: Handle backslashes and leading period --- re | 2 ++ 1 file changed, 2 insertions(+) (limited to 're') diff --git a/re b/re index 934a137..4b6a092 100755 --- a/re +++ b/re @@ -111,6 +111,8 @@ while (<$fh>) { while ($_ = readline $handles{$file}) { $bytes += length($_); last if $end and $bytes > $end; + s/\\/\\\\/g; + s/^\./\\&./; print; } -- cgit v1.2.3