mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 09:12:54 +08:00
Adjust conditionals
The fact that checking the unicode title was gated behind a `hasRomanisedTitle` guard was breaking my brain.
This commit is contained in:
parent
32b3d3d7df
commit
5696e85b68
@ -37,15 +37,11 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
{
|
{
|
||||||
bool hasRomanisedTitle = unicodeTitle != romanisedTitle;
|
bool hasRomanisedTitle = unicodeTitle != romanisedTitle;
|
||||||
|
|
||||||
if (check.AnyRegex.IsMatch(romanisedTitle) && !check.ExactRegex.IsMatch(romanisedTitle))
|
if (check.AnyRegex.IsMatch(unicodeTitle) && !check.ExactRegex.IsMatch(unicodeTitle))
|
||||||
{
|
|
||||||
yield return new IssueTemplateIncorrectMarker(this).Create(hasRomanisedTitle ? "Romanised title" : "Title", check.CorrectMarkerFormat);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasRomanisedTitle && check.AnyRegex.IsMatch(unicodeTitle) && !check.ExactRegex.IsMatch(unicodeTitle))
|
|
||||||
{
|
|
||||||
yield return new IssueTemplateIncorrectMarker(this).Create("Title", check.CorrectMarkerFormat);
|
yield return new IssueTemplateIncorrectMarker(this).Create("Title", check.CorrectMarkerFormat);
|
||||||
}
|
|
||||||
|
if (hasRomanisedTitle && check.AnyRegex.IsMatch(romanisedTitle) && !check.ExactRegex.IsMatch(romanisedTitle))
|
||||||
|
yield return new IssueTemplateIncorrectMarker(this).Create("Romanised title", check.CorrectMarkerFormat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user