Skip to content

Commit

Permalink
fix: 🐛 fix created description of \ when quick-starting empty time …
Browse files Browse the repository at this point in the history
…entry (#106)
  • Loading branch information
JamesNZL committed Jul 7, 2023
1 parent b4208c8 commit a761e63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TogglTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ private async ValueTask<List<Result>> _GetStartResults(CancellationToken token,
{
long? projectId = null;
long workspaceId = me.DefaultWorkspaceId;
string description = transformedQuery.ReplaceProject(string.Empty, unescape: true);
string description = transformedQuery.ReplaceProject(string.Empty, escapeIfEmpty: false, unescape: true);
// Attempt to parse the time span flag if it exists
TimeSpan startTimeSpan = TimeSpan.Zero;
Expand All @@ -851,7 +851,7 @@ out startTimeSpan
{
description = new TransformedQuery(query)
.To(Settings.TimeSpanFlag)
.ReplaceProject(string.Empty, unescape: true);
.ReplaceProject(string.Empty, escapeIfEmpty: false, unescape: true);
}
}
Expand Down Expand Up @@ -951,7 +951,7 @@ out startTimeSpan
{
long projectId = project.Id;
long workspaceId = project.WorkspaceId;
string description = transformedQuery.ReplaceProject(string.Empty, unescape: true);
string description = transformedQuery.ReplaceProject(string.Empty, escapeIfEmpty: false, unescape: true);
// Attempt to parse the time span flag if it exists
TimeSpan startTimeSpan = TimeSpan.Zero;
Expand All @@ -972,7 +972,7 @@ out startTimeSpan
{
description = new TransformedQuery(query)
.To(Settings.TimeSpanFlag)
.ReplaceProject(string.Empty, unescape: true);
.ReplaceProject(string.Empty, escapeIfEmpty: false, unescape: true);
}
}
Expand Down

0 comments on commit a761e63

Please sign in to comment.