Modify railways arabic/persian names

This commit is contained in:
Milad Karbasizadeh
2017-01-03 16:34:57 +03:30
parent a36650ccbe
commit 5da7d83fe9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ export function utilDisplayName(entity) {
var isFirefox = utilDetect().browser.toLowerCase().indexOf('firefox') > -1
var arabicRegex = /[\u0600-\u06FF]/g
if(!isFirefox && name && entity.tags.highway && arabicRegex.test(name)){
if(!isFirefox && name && (entity.tags.highway || entity.tags.railway) && arabicRegex.test(name)){
name = fixArabicScriptTextForSvg(name);
}