Fixed: Update AppIndexerRegex to support indexer ids over 100

Fixed Update AppIndexerRegex to support /api trailing (Mylar3)
pull/440/head
bakerboy448 3 years ago committed by Qstick
parent efb2a5751c
commit b54c7e220e

@ -14,7 +14,7 @@ namespace NzbDrone.Core.Applications
protected readonly IAppIndexerMapService _appIndexerMapService; protected readonly IAppIndexerMapService _appIndexerMapService;
protected readonly Logger _logger; protected readonly Logger _logger;
protected static readonly Regex AppIndexerRegex = new Regex(@"\/(?<indexer>\d.)\/?$", protected static readonly Regex AppIndexerRegex = new Regex(@"\/(?<indexer>\d{1,3})(?:\/(?:api)?\/?)?$",
RegexOptions.IgnoreCase | RegexOptions.Compiled); RegexOptions.IgnoreCase | RegexOptions.Compiled);
public abstract string Name { get; } public abstract string Name { get; }

Loading…
Cancel
Save