This commit is contained in:
2018-04-20 12:17:36 +08:00
parent a06dc57e58
commit 1dcd58913b
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ function formatBaiduCity(baiduCity) {
break;
}
}
if (newCity == "" && baiduCity.endWith("市")) {
if (newCity == "" && baiduCity && baiduCity.endWith("市")) {
newCity = baiduCity.substring(0,baiduCity.length-1);
}
return newCity;