fix cannot load language resource sometimes

master
MaysWind 2017-03-26 12:41:07 +08:00
parent c13c41d6f0
commit 4b2fbb916a
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@
};
}
}
return {
value: line
};
@ -64,6 +64,8 @@
continue;
}
line = line.replace('\r', '');
if (/^\[.+\]$/.test(line)) {
currentCatagory = getCategory(langObj, line);
continue;