File size: 738 Bytes
e4f3d12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import os
import re

def strip_emojis(text):
    # This regex is a simple way to catch most common emojis/non-ascii symbols
    return text.encode('ascii', 'ignore').decode('ascii')

files_to_clean = [
    "tasks_deepak.md",
    "tasks_divyank.md",
    "tasks_niti.md",
    "README_SUBMISSION.md",
    "README.md",
    "prd.md",
    "AGENT.md",
    "GEMINI.md"
]

for filename in files_to_clean:
    if os.path.exists(filename):
        with open(filename, 'r', encoding='utf-8') as f:
            content = f.read()
        
        clean_content = strip_emojis(content)
        
        with open(filename, 'w', encoding='utf-8') as f:
            f.write(clean_content)
        print(f"Cleaned {filename}")