Skip to content

Commit fc557ca

Browse files
committed
Fix error with em dashes
1 parent 537a79b commit fc557ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group 'dev.hephaestus'
9-
version '0.3.1'
9+
version '0.3.2'
1010

1111
repositories {
1212
mavenCentral()

src/main/java/dev/hephaestus/proximity/cards/TextParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private TextBody parse(boolean allWordsItalic) {
122122
private String completeWord() {
123123
String word = this.currentWord.toString();
124124

125-
if (word.startsWith("\u2014") && this.oracle.charAt(i) != '\n') {
125+
if (word.startsWith("\u2014") && i < this.oracle.length() && this.oracle.charAt(i) != '\n') {
126126
loop: for (int i = this.text.size() - 1; i > 0; --i) {
127127
List<TextComponent> list = this.text.get(i);
128128

0 commit comments

Comments
 (0)