mirror of
https://github.com/telavivmakers/geek_code.git
synced 2024-09-05 10:21:08 +03:00
Delete geek_decode.py
This commit is contained in:
parent
88c2ed1bb0
commit
0767992cf2
|
@ -1,17 +0,0 @@
|
||||||
# geek_code 5.x decoder
|
|
||||||
|
|
||||||
import re
|
|
||||||
import codes
|
|
||||||
|
|
||||||
def parse_geekcode(s):
|
|
||||||
full_meaning = []
|
|
||||||
remaining_string = s
|
|
||||||
for d in [codes.geek_of]:
|
|
||||||
for code,meaning in d.items():
|
|
||||||
search_string = r'\b' + code + r'\b'
|
|
||||||
m = re.search(search_string,s)
|
|
||||||
if m:
|
|
||||||
print(f'looking for {search_string} in {remaining_string}')
|
|
||||||
remaining_string = re.sub(search_string, '', remaining_string)
|
|
||||||
full_meaning.append(meaning)
|
|
||||||
return(full_meaning, remaining_string)
|
|
Loading…
Reference in New Issue
Block a user