Files

37 lines
774 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import re
# Read file
with open('assets/js/app.js', 'r', encoding='utf-8') as f:
content = f.read()
# Map of replacements
replacements = {
# Icons in toasts and popups
'âœ"': '✓',
'✕': '✕',
'ℹ': 'ⓘ',
'âš ': '⚠',
'ðŸ"': '📍',
'🛣ï¸': '🛣️',
'⬠': '⬜',
'ðŸ'¤': '👥',
'ðŸ—'': '🗑️',
'🕌': '🏢',
'ðŸ\"¡': '📍',
'â€"': '',
'’': "'",
'©': '©',
'²': '²',
'â³': '⏳',
}
# Apply replacements
for old, new in replacements.items():
content = content.replace(old, new)
# Write back
with open('assets/js/app.js', 'w', encoding='utf-8') as f:
f.write(content)
print("✓ File app.js berhasil diperbaiki!")