Cleaning up tags and url regexes, closes #6
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-03 12:44:04 -04:00
parent d4c4f521ec
commit 0903278f14
4 changed files with 8 additions and 8 deletions

View File

@@ -142,8 +142,8 @@ public abstract class AbstractScraper : IScraper
public virtual async Task<Novel> ScrapeNovel(string url)
{
var baseUrl = new Regex(BaseUrlPattern).Match(url).Value;
var novelUrl = new Regex(UrlMatchPattern).Match(url).Value;
var baseUrl = new Regex(BaseUrlPattern, RegexOptions.IgnoreCase).Match(url).Value;
var novelUrl = new Regex(UrlMatchPattern, RegexOptions.IgnoreCase).Match(url).Value;
var doc = await GetPage(novelUrl);
if (string.IsNullOrEmpty(doc.Text))
{