Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Do not escape newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
herrbischoff committed Mar 13, 2021
1 parent 6fc6c58 commit 963ee97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/regex-escape
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

import re, sys

input = sys.stdin.read()
print(re.escape(input))
input = sys.stdin.read().splitlines()
for line in input:
print(re.escape(line))

0 comments on commit 963ee97

Please sign in to comment.