/// <summary> /// 设置章节地址。 /// </summary> private void SetChapterUrls() { if (string.IsNullOrEmpty(TableContent)) { throw new NullReferenceException("网页内容为空"); } var start = TableContent.IndexOf(Config.Table.Start); var end = TableContent.IndexOf(Config.Table.Stop); start += Config.Table.Start.Length; if (start >= end) { throw new NullReferenceException("网页内容为空"); } var list = Regex.Matches(TableContent[start..end], Config.Table.Pattern);