fix(housing): ignore RP for plot detection
This commit is contained in:
parent
6364c4fc5e
commit
90df6a0721
|
@ -31,9 +31,9 @@ namespace RoleplayersToolbox.Tools.Housing {
|
||||||
|
|
||||||
private static readonly JaroWinkler JaroWinkler = new();
|
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 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);
|
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) {
|
public static DestinationInfo Extract(string source, uint dataCentre, DataManager data, HousingInfo info) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user