summaryrefslogtreecommitdiff
path: root/data_lib.py
diff options
context:
space:
mode:
authorrusinthread <rusinthread@cock.li>2017-05-13 13:47:59 +0300
committerrusinthread <rusinthread@cock.li>2017-05-13 13:47:59 +0300
commitcfd4b3a44907692a695bf8afe7d12efa209d654d (patch)
treeec22d70bb825378913f8001be41ad67c2ae3de0e /data_lib.py
parentf4028d779547d60b7e6401a86f2efe0065f4c0a6 (diff)
more accurate decryption
Diffstat (limited to 'data_lib.py')
-rw-r--r--data_lib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/data_lib.py b/data_lib.py
index 5c830c7..5015fdc 100644
--- a/data_lib.py
+++ b/data_lib.py
@@ -226,7 +226,7 @@ def decode_2char_rot_minus3(s):
buf = ''
for line in lines:
line = line.replace(' ', '')
- if line in ('3', '4', '7/5'):
+ if re.sub(r'[\.\!\?\\/]', '', line).isdigit():
buf += line
continue
buf += line[1]