diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 17:46:02 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 17:46:31 +0200 |
commit | 222571f8fd71c41d7b7e0b433de923d1d6ff1e55 (patch) | |
tree | 335c6bd93eb6def0a47f4a3715bfdb6c1e0b812d /re | |
parent | 1e02b5a1a2e79b62343eb888d3b2452c70116c08 (diff) | |
download | ref-222571f8fd71c41d7b7e0b433de923d1d6ff1e55.tar.gz |
re: Handle backslashes and leading period
Diffstat (limited to 're')
-rwxr-xr-x | re | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -111,6 +111,8 @@ while (<$fh>) { while ($_ = readline $handles{$file}) { $bytes += length($_); last if $end and $bytes > $end; + s/\\/\\\\/g; + s/^\./\\&./; print; } |