aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/AudioBook/AudioBookNameParser.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-02-17 15:00:06 +0100
committerBond_009 <bond.009@outlook.com>2023-02-17 15:00:06 +0100
commit48263078b46aa4ef46c0fb6944665b2c317bf077 (patch)
treebeaf901c571ed2bdf475870c337144561b6540cf /Emby.Naming/AudioBook/AudioBookNameParser.cs
parentdf8346cd634dbd9e8cc26c121c406b272bc9a57f (diff)
Reduce string allocations by regex
Diffstat (limited to 'Emby.Naming/AudioBook/AudioBookNameParser.cs')
-rw-r--r--Emby.Naming/AudioBook/AudioBookNameParser.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Naming/AudioBook/AudioBookNameParser.cs b/Emby.Naming/AudioBook/AudioBookNameParser.cs
index 97b34199e0..f49c3f0e75 100644
--- a/Emby.Naming/AudioBook/AudioBookNameParser.cs
+++ b/Emby.Naming/AudioBook/AudioBookNameParser.cs
@@ -47,7 +47,7 @@ namespace Emby.Naming.AudioBook
var value = match.Groups["year"];
if (value.Success)
{
- if (int.TryParse(value.Value, NumberStyles.Integer, CultureInfo.InvariantCulture, out var intValue))
+ if (int.TryParse(value.ValueSpan, NumberStyles.Integer, CultureInfo.InvariantCulture, out var intValue))
{
result.Year = intValue;
}