Repository navigation
Expand file tree
/
Copy pathfix-encoding.js
More file actions
17 lines (14 loc) · 4.16 KB
/
Copy pathfix-encoding.js
File metadata and controls
17 lines (14 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const fs = require('fs');
let c = fs.readFileSync('src/pages/Dashboard/DashboardPage.tsx', 'utf8');
c = c.replace(/🕠/g, '🕐') // 🕐
.replace(/â /g, '⭐') // ⭐
.replace(/ðŸ—ºï¸ /g, '🗺️') // 🗺️
.replace(/ðŸ—‘ï¸ /g, '🗑️') // 🗑️
.replace(/ðŸ—‚ï¸ /g, '🗂️'); // 🗂️
c = c.replace(/─── Helpers ─────────────────────────────────────────────────────────────────/g, '─── Helpers ──────────────────────────────────────────────────────────────────')
.replace(/─── Map Card ─────────────────────────────────────────────────────────────────/g, '─── Map Card ─────────────────────────────────────────────────────────────────')
.replace(/─── Trash Card ────────────────────────────────────────────────────────────────/g, '─── Trash Card ───────────────────────────────────────────────────────────────')
.replace(/─── Page ───────────────────────────────────────────────────────────────────/g, '─── Page ────────────────────────────────────────────────────────────────────')
.replace(/─── View-based filtering ──────────────────────────────────────────────────/g, '─── View-based filtering ──────────────────────────────────────────────────');
fs.writeFileSync('src/pages/Dashboard/DashboardPage.tsx', c);
console.log('Fixed Mojibake');