Skip to content

Commit 2814c3c

Browse files
authored
Merge pull request #997 from more-please/master
Fix incorrect substring in TrySplittingHeadTailWhitespace
2 parents ad59bc5 + 911e64c commit 2814c3c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/engine/StoryState.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -815,10 +815,7 @@ export class StoryState {
815815
}
816816

817817
if (innerStrEnd > innerStrStart) {
818-
let innerStrText = str.substring(
819-
innerStrStart,
820-
innerStrEnd - innerStrStart
821-
);
818+
let innerStrText = str.substring(innerStrStart, innerStrEnd);
822819
listTexts.push(new StringValue(innerStrText));
823820
}
824821

0 commit comments

Comments
 (0)