Remove LocationParsingConfiguration and LocationPatternMatcher classes, along with related tests and UI components. Update EventOccurrenceParserService to include location validation logic, enhancing warning reporting for long locations and potential date/time patterns. Adjust appsettings and UI to reflect the removal of location parsing settings.
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
namespace Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Configuration for location parsing patterns used in event occurrence parsing.
|
||||
/// Supports venue-specific room naming conventions.
|
||||
/// </summary>
|
||||
public class LocationParsingConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// List of location prefix patterns (e.g., ["Room *", "Hall *", "Conference Room *"]).
|
||||
/// Patterns use "*" as wildcard to match any text after the prefix.
|
||||
/// </summary>
|
||||
public List<string> LocationPatterns { get; set; } = new();
|
||||
|
||||
/// <summary>
|
||||
/// Default location parsing configuration with common patterns.
|
||||
/// </summary>
|
||||
public static LocationParsingConfiguration Default => new()
|
||||
{
|
||||
LocationPatterns = new List<string>
|
||||
{
|
||||
"Room *",
|
||||
"Hall *",
|
||||
"Exhibit Hall *",
|
||||
"Conference Room *",
|
||||
"Building *",
|
||||
"Auditorium *",
|
||||
"Mtg. Room *",
|
||||
"Meeting Room *",
|
||||
"Banquet Room *",
|
||||
"Banquet Hall *",
|
||||
"Online",
|
||||
"Virtual",
|
||||
"TBD"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user