Factor some lines (raw loading pug files)
[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 }