reduced rikiki again

This commit is contained in:
Mindiell 2023-09-18 21:10:13 +02:00
parent db5e2f2e26
commit 2b25e92cad
2 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,9 @@ Fun fact: Rikiki source code is *three times smaller* than this readme file.
# History
* First verision : 532 bytes
* First version : 532 bytes
* Second version : 507 bytes
* Third version : 477 bytes
# Usage

View File

@ -9,5 +9,5 @@ c=s[0] if s else o(p).read()
l[p]=[x[0] for x in r.findall(k,c)]
h=r.sub(k,v,c,r.M)
j.dump(l,o("b","w"))
print(f'Content-Type: text/html\n\n<pre>{h}<form method=POST><textarea name=s>{c}</textarea><input type=submit></form>')
print(f'\n\n<pre>{h}<form method=POST><textarea name=s>{c}</textarea><input type=submit>')
[n==p and print(r.sub(k,v,m)) for m in l for n in l[m]]