Skip to content

Commit

Permalink
Fixed an issue with DOY was repeated with a relative time tag in a se… (
Browse files Browse the repository at this point in the history
#1331)

Fixed an issue with DOY was repeated with a relative time tag in a sequence

Co-authored-by: Dan Delany <[email protected]>
  • Loading branch information
cohansen and dandelany authored Jun 12, 2024
1 parent 13bc950 commit 9a77df6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utilities/new-sequence-editor/to-seq-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ export function parseTime(commandNode: SyntaxNode, text: string): Time {
if (match) {
RELATIVE_TIME.lastIndex = 0;
const [, doy, hh, mm, ss, ms] = match;
tag = `${doy !== undefined ? doy : ''}${doy !== undefined ? doy : ''}${hh ? hh : '00'}:${mm ? mm : '00'}:${
ss ? ss : '00'
}${ms ? ms : ''}`;
tag = `${doy !== undefined ? doy : ''}${hh ? hh : '00'}:${mm ? mm : '00'}:${ss ? ss : '00'}${ms ? ms : ''}`;
return { tag, type: 'COMMAND_RELATIVE' };
}
match = testTime(timeTagRelativeText, RELATIVE_SIMPLE);
Expand Down

0 comments on commit 9a77df6

Please sign in to comment.