Changed compatibility to be a string to avoid confusion between the string value and integer index.

This commit is contained in:
chris062689
2017-06-06 16:11:29 -04:00
parent a2ae816ce5
commit 3354212649
5 changed files with 25 additions and 24 deletions

View File

@ -145,10 +145,10 @@ try {
// Parse testcase information out of the dat to reinject as shortcut values.
var dat = toml.parse(datContents);
if (dat.testcases == null || dat.testcases.length == 0) {
datContents = `compatibility = 99"\r\ntestcase_date = "2000-01-01"\r\n` + datContents;
datContents = `compatibility = \"99\"\r\ntestcase_date = "2000-01-01"\r\n` + datContents;
} else {
let recent = dat.testcases[0];
datContents = `compatibility = ${recent.compatibility}\r\ntestcase_date = "${recent.date}"\r\n` + datContents;
datContents = `compatibility = \"${recent.compatibility}\"\r\ntestcase_date = "${recent.date}"\r\n` + datContents;
}
var wikiContents = "";