public string ReloadBoilerPlateCache() { _boilerPlateRegexLoadedFromDatabase = false; BoilerPlateRegexCache.Clear(); LoadBoilerPlateFromFile(); return(AttemptToLoadBoilerPlateRegexFromDatabase()); }
private void LoadBoilerPlateFromFile() { foreach (var marker in Resources.custom_full_text_markers.Split(new[] { "\n" }, StringSplitOptions.RemoveEmptyEntries)) { BoilerPlateRegexCache.Add(new Regex(marker.Trim(), RegexOptions.Compiled)); } }
public void AddToBoilerPlate(string item) { BoilerPlateRegexCache.Add(new Regex(item, RegexOptions.Compiled)); }