修复标签移除的BUG Fix #165

This commit is contained in:
nilaoda 2023-06-11 20:12:26 +08:00
parent e7e3efec00
commit f1a371575c
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ namespace N_m3u8DL_RE.Common.Entity
{
if (VttClassRegex().IsMatch(text))
{
return VttClassRegex().Match(text).Groups[1].Value;
return string.Join(Environment.NewLine, text.Split('\n').Select(line => line.TrimEnd()).Select(line =>
{
return string.Concat(VttClassRegex().Matches(line).Select(x => x.Groups[1].Value + " "));
})).TrimEnd();
}
else return text;
}