Fixed: Update AppIndexerRegex to support indexer ids over 100

Fixed Update AppIndexerRegex to support /api trailing (Mylar3)
This commit is contained in:
bakerboy448 2021-08-17 10:36:08 -05:00 committed by Qstick
parent efb2a5751c
commit b54c7e220e

View file

@ -14,7 +14,7 @@ public abstract class ApplicationBase<TSettings> : IApplication
protected readonly IAppIndexerMapService _appIndexerMapService;
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);
public abstract string Name { get; }