about summary refs log tree commit diff stats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/hldiff.py2
-rwxr-xr-xcontrib/plaintext.py2
2 files changed, 0 insertions, 4 deletions
diff --git a/contrib/hldiff.py b/contrib/hldiff.py
index 5f660fd..f3cfd20 100755
--- a/contrib/hldiff.py
+++ b/contrib/hldiff.py
@@ -3,13 +3,11 @@ from colorama import Fore, Style
 import sys
 import re
 
-ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
 stat_re = re.compile(r'(| \d+ )(\+*)(\-*)')
 lines_re = re.compile(r'@@ (-\d+,\d+ \+\d+,\d+) @@')
 
 sys.stdin.reconfigure(encoding='utf-8', errors='ignore')
 patch = sys.stdin.read().replace("\r\n", "\n")
-patch = ansi_escape.sub('', patch)
 
 hit_diff = False
 for line in patch.split("\n"):
diff --git a/contrib/plaintext.py b/contrib/plaintext.py
index 522055b..d46991a 100755
--- a/contrib/plaintext.py
+++ b/contrib/plaintext.py
@@ -5,7 +5,6 @@ import re
 
 # TODO: Wrap text to terminal width?
 
-ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
 # TODO: I guess this might vary from MUA to MUA. I've definitely seen localized
 # versions in the wild
 quote_prefix_re = re.compile(r"On .*, .* wrote:")
@@ -13,7 +12,6 @@ quote_re = re.compile(r">+")
 
 sys.stdin.reconfigure(encoding='utf-8', errors='ignore')
 mail = sys.stdin.read().replace("\r\n", "\n")
-mail = ansi_escape.sub('', mail)
 
 for line in mail.split("\n"):
     if quote_re.match(line) or quote_prefix_re.match(line):
t'>
2a09617 ^







f9d26ee ^
2e5ae19 ^

2a09617 ^
c552231 ^
acfe7d7 ^

2e5ae19 ^
c552231 ^
acfe7d7 ^











753adb9 ^

2e5ae19 ^


8bb115d ^



217e85a ^



753adb9 ^



32f970e ^

c552231 ^
acfe7d7 ^

2e5ae19 ^

715c9a4 ^
2e5ae19 ^






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78