73 |
i++; |
i++; |
74 |
} |
} |
75 |
|
|
76 |
//special case - hvis strengen ender med ' nr' skal ' nr' fjernes |
|
77 |
result.vej = delStreng.toString().toLowerCase().trim(); |
result.vej = delStreng.toString().toLowerCase().trim(); |
78 |
if ( result.vej.endsWith(".") || result.vej.endsWith(",")) { |
if ( result.vej.endsWith(".") || result.vej.endsWith(",")) { |
79 |
result.vej = result.vej.substring(0, result.vej.length() - 1); |
result.vej = result.vej.substring(0, result.vej.length() - 1); |
80 |
} |
result.vej = result.vej.trim(); |
81 |
|
} |
82 |
|
|
83 |
|
//special case - hvis strengen ender med ' nr' skal ' nr' fjernes |
84 |
if ( result.vej.endsWith(" nr")) { |
if ( result.vej.endsWith(" nr")) { |
85 |
result.vej = result.vej.substring(0, result.vej.length() - 3); |
result.vej = result.vej.substring(0, result.vej.length() - 3); |
86 |
} |
} |