[fix]修正ToInt方法在Span优化后无法识别前缀+的问题

This commit is contained in:
大石头 2024-10-06 23:55:07 +08:00
parent 7c8f1c88b2
commit c234c15641
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ public class TimeExpressionItem
if (value.IsNullOrEmpty() || value.Length < 3) return false;
Level = value[^1..];
Value = value[..^1].ToInt();
Value = value[..^1].TrimStart('+').ToInt();
return true;
}