From e45f7aff85fc65db9f5a6fdcc5081e67d5c73447 Mon Sep 17 00:00:00 2001 From: Takeshi Yokemura Date: Sat, 7 Aug 2021 19:35:43 +0900 Subject: [PATCH] Parser fix --- Source/FrameSequenceParser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/FrameSequenceParser.cpp b/Source/FrameSequenceParser.cpp index ff3696c..34e003e 100644 --- a/Source/FrameSequenceParser.cpp +++ b/Source/FrameSequenceParser.cpp @@ -373,11 +373,10 @@ FrameSequence FrameSequenceParser::parse (const String& input, { if (hasRelease) { - str_beforeRepeat = trimmed.substring (0, repeatStartIndex - 1); + str_release = trimmed.substring(releaseBlockIndex, trimmed.length()); } - - str_insideRepeat = trimmed.substring (repeatStartIndex, repeatEndIndex); - } + str_beforeRepeat = trimmed.substring(0, repeatStartIndex - 1); + str_insideRepeat = trimmed.substring (repeatStartIndex, repeatEndIndex); } else { if (hasRelease)