Regex addition (#200)
This commit is contained in:
parent
ef2d88a0da
commit
e37931b0da
2 changed files with 5 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ namespace API.Tests.Parser
|
||||||
[InlineData("NEEDLESS_Vol.4_-_Simeon_6_v2_[SugoiSugoi].rar", "NEEDLESS")]
|
[InlineData("NEEDLESS_Vol.4_-_Simeon_6_v2_[SugoiSugoi].rar", "NEEDLESS")]
|
||||||
[InlineData("Okusama wa Shougakusei c003 (v01) [bokuwaNEET]", "Okusama wa Shougakusei")]
|
[InlineData("Okusama wa Shougakusei c003 (v01) [bokuwaNEET]", "Okusama wa Shougakusei")]
|
||||||
[InlineData("VanDread-v01-c001[MD].zip", "VanDread")]
|
[InlineData("VanDread-v01-c001[MD].zip", "VanDread")]
|
||||||
|
[InlineData("Momo The Blood Taker - Chapter 027 Violent Emotion.cbz", "Momo The Blood Taker")]
|
||||||
public void ParseSeriesTest(string filename, string expected)
|
public void ParseSeriesTest(string filename, string expected)
|
||||||
{
|
{
|
||||||
Assert.Equal(expected, API.Parser.Parser.ParseSeries(filename));
|
Assert.Equal(expected, API.Parser.Parser.ParseSeries(filename));
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,10 @@ namespace API.Parser
|
||||||
new Regex(
|
new Regex(
|
||||||
@"(?<Series>.*)(?: _|-|\[|\() ?v",
|
@"(?<Series>.*)(?: _|-|\[|\() ?v",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
|
// Momo The Blood Taker - Chapter 027 Violent Emotion.cbz
|
||||||
|
new Regex(
|
||||||
|
@"(?<Series>.*) (\b|_|-)(?:chapter)",
|
||||||
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
// Historys Strongest Disciple Kenichi_v11_c90-98.zip, Killing Bites Vol. 0001 Ch. 0001 - Galactica Scanlations (gb)
|
// Historys Strongest Disciple Kenichi_v11_c90-98.zip, Killing Bites Vol. 0001 Ch. 0001 - Galactica Scanlations (gb)
|
||||||
new Regex(
|
new Regex(
|
||||||
@"(?<Series>.*) (\b|_|-)v",
|
@"(?<Series>.*) (\b|_|-)v",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue