fix(housing): ignore RP for plot detection

This commit is contained in:
Anna 2021-07-01 13:20:30 -04:00
parent ee03cd296b
commit 6b1b0719dc
1 changed files with 2 additions and 2 deletions

View File

@ -31,9 +31,9 @@ namespace RoleplayersToolbox.Tools.Housing {
private static readonly JaroWinkler JaroWinkler = new();
private static readonly Regex CombinedWardPlot = new(@"(?<!sf)w(?:ard)?\W{0,2}(\d{1,2})\W{0,2}p(?:lot)?\W{0,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex CombinedWardPlot = new(@"(?<!sf)w(?:ard)?\W{0,2}(\d{1,2})\W{0,2}(?<!r)p(?:lot)?\W{0,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex WardOnly = new(@"(?<!sf)w(?:ard)?\W{0,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex PlotOnly = new(@"p(?:lot)?\W{0,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex PlotOnly = new(@"(?<!r)p(?:lot)?\W{0,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex DesperationCombined = new(@"(\d{1,2})\W{1,2}(\d{1,2})", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static DestinationInfo Extract(string source, uint dataCentre, DataManager data, HousingInfo info) {