fix(housing): ignore RP for plot detection

This commit is contained in:
Anna 2021-07-01 13:20:30 -04:00
parent 6364c4fc5e
commit 90df6a0721
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

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) {