Difference between revisions of "Template:HSNU-TAIPEI/members js"
Line 21: | Line 21: | ||
var justifiedName = ""; | var justifiedName = ""; | ||
for(var i = 0; i < length; i++) { | for(var i = 0; i < length; i++) { | ||
− | if(personName[i] !== ' ' | + | var check = true; |
− | + | if(personName[i] !== ' ' || personName[i] !== '-') { | |
+ | check = false; | ||
} | } | ||
+ | if(check) { | ||
+ | justifiedName += personName[i]; | ||
+ | } | ||
} | } | ||
return justifiedName; | return justifiedName; |
Revision as of 12:41, 16 June 2015