From: Benjamin Auder Date: Thu, 6 Feb 2020 00:35:59 +0000 (+0100) Subject: Fix rules contents X-Git-Url: https://git.auder.net/variants/Chakart/img/doc/pieces/current/gitweb.css?a=commitdiff_plain;h=ea7adb58856831def06a2c076153b0b34d904e37;p=vchess.git Fix rules contents --- diff --git a/client/src/views/Rules.vue b/client/src/views/Rules.vue index 8e883301..5c38a2dc 100644 --- a/client/src/views/Rules.vue +++ b/client/src/views/Rules.vue @@ -83,7 +83,7 @@ export default { this.content = require("raw-loader!@/translations/rules/" + vname + "/" + this.st.lang + ".pug") // Next two lines fix a weird issue after last update (2019-11) - .replace(/\\[n"]/g, " ") + .replace(/\\n/g, " ").replace(/\\"/g, '"') .replace('module.exports = "', '').replace(/"$/, "") .replace(/(fen:)([^:]*):/g, replaceByDiag); },