fix cannot load language resource sometimes
This commit is contained in:
parent
c13c41d6f0
commit
4b2fbb916a
|
@ -11,7 +11,7 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
value: line
|
value: line
|
||||||
};
|
};
|
||||||
|
@ -64,6 +64,8 @@
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
line = line.replace('\r', '');
|
||||||
|
|
||||||
if (/^\[.+\]$/.test(line)) {
|
if (/^\[.+\]$/.test(line)) {
|
||||||
currentCatagory = getCategory(langObj, line);
|
currentCatagory = getCategory(langObj, line);
|
||||||
continue;
|
continue;
|
||||||
|
|
Reference in a new issue