Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/LiveSplit.Video/VideoSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public string OffsetString
get => TimeFormatter.Format(Offset);
set
{
if (Regex.IsMatch(value, "[^0-9:.,-]"))
// The ordering here is significant. If the DASH isn't last the expression attempts to match on a range.
string negative_pattern = "[^0-9:.," + TimeFormatConstants.MINUS + TimeFormatConstants.DASH + "]";
if (Regex.IsMatch(value, negative_pattern))
{
return;
}
Expand Down