58bdb5650ded23e84d04a14e07dd63dc1bd13132
[vchess.git] / client / src / utils / afterRawLoad.js
1 export default function afterRawLoad(text) {
2 return (
3 text
4 // Next two lines fix a weird issue after last update (2019-11)
5 .replace(/\\n/g, " ")
6 .replace(/\\"/g, '"')
7 .replace('export default "', "")
8 .replace(/";$/, "")
9 );
10 }