mirror of https://gitlab.com/bashrc2/epicyon
Handle inverted 6 and 9
parent
45be44ecd8
commit
21ece75119
6
utils.py
6
utils.py
|
@ -226,7 +226,7 @@ def uninvert_text(text: str) -> str:
|
|||
|
||||
result = text
|
||||
if matches > len(text)/3:
|
||||
result = possible_result.replace('9', '6')
|
||||
result = possible_result
|
||||
new_result = ''
|
||||
extra_replace = {
|
||||
'[': ']',
|
||||
|
@ -234,7 +234,9 @@ def uninvert_text(text: str) -> str:
|
|||
'(': ')',
|
||||
')': '(',
|
||||
'<': '>',
|
||||
'>': '<'
|
||||
'>': '<',
|
||||
'9': '6',
|
||||
'6': '9'
|
||||
}
|
||||
for ch1 in result:
|
||||
ch_result = ch1
|
||||
|
|
Loading…
Reference in New Issue