--- dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AddressUtils.java 2015/03/01 16:03:29 2416 +++ dao/DaoAdresseService/src/dk/daoas/daoadresseservice/AddressUtils.java 2015/03/01 16:47:34 2417 @@ -174,8 +174,11 @@ if (current != 'Æ'&& current != 'Ø' && current != 'Å') { if ( (i+1 == len || - (Character.isAlphabetic(indAdresse.charAt(i+1)) == false - /*&& indAdresse.charAt(i+1) != '.'*/) + (Character.isAlphabetic(indAdresse.charAt(i+1) ) == false + /*&& indAdresse.charAt(i+1) != '.'*/ + + && checkCo(indAdresse,i) == false // Fra sortér C/O + ) ) ) { result.litra = "" + current; @@ -279,6 +282,15 @@ return result; } + public static boolean checkCo(String addr, int pos) { + + if ( StringUtils.substring(addr, pos, pos+3).equalsIgnoreCase("C/O") ) + return true; + + return false; + + } + }