+ this.rulesContent =
+ require(
+ "raw-loader!@/translations/rules/" +
+ this.gameRef.vname + "/" +
+ this.st.lang + ".pug"
+ )
+ // Next two lines fix a weird issue after last update (2019-11)
+ .replace(/\\n/g, " ")
+ .replace(/\\"/g, '"')
+ .replace('module.exports = "', "")
+ .replace(/"$/, "")
+ .replace(/(fen:)([^:]*):/g, replaceByDiag);
+ },
+ gotoRules: function() {
+ this.$router.push("/variants/" + this.gameRef.vname);