From 4b2fbb916af3f54bae82e0a0b986e8a52f9d5ff7 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 26 Mar 2017 12:41:07 +0800 Subject: [PATCH] fix cannot load language resource sometimes --- src/scripts/services/ariaNgLanguageLoader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/services/ariaNgLanguageLoader.js b/src/scripts/services/ariaNgLanguageLoader.js index 99aec37..8a6b2d7 100644 --- a/src/scripts/services/ariaNgLanguageLoader.js +++ b/src/scripts/services/ariaNgLanguageLoader.js @@ -11,7 +11,7 @@ }; } } - + return { value: line }; @@ -64,6 +64,8 @@ continue; } + line = line.replace('\r', ''); + if (/^\[.+\]$/.test(line)) { currentCatagory = getCategory(langObj, line); continue;