Skip to content

Commit

Permalink
Pass through codepoints > codelist.length, they're unicode anyway
Browse files Browse the repository at this point in the history
Cf. #27
  • Loading branch information
thvitt committed Mar 27, 2017
1 parent 0970d28 commit 817586b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/net/davidashen/text/Hyphenator.java
Expand Up @@ -445,7 +445,9 @@ private void read() {
default: break;
}
} break;
default: if(cc!=-1) cc=codelist[cc]; break;
default: if(cc!=-1 && cc < codelist.length)
cc=codelist[cc];
break;
}
} catch(java.io.IOException e) {
error(e.toString());
Expand Down

0 comments on commit 817586b

Please sign in to comment.