mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Minor refact
This commit is contained in:
parent
2877320b76
commit
0ad7bab4d2
@ -145,4 +145,4 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -141,4 +141,4 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -5,8 +5,8 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
{
|
||||
public class NoBreakAfterItem : IComparable
|
||||
{
|
||||
public Regex Regex;
|
||||
public string Text;
|
||||
public readonly Regex Regex;
|
||||
public readonly string Text;
|
||||
|
||||
public NoBreakAfterItem(Regex regex, string text)
|
||||
{
|
||||
@ -24,7 +24,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
if (Regex != null)
|
||||
return Regex.IsMatch(line);
|
||||
|
||||
if (!string.IsNullOrEmpty(Text) && line.EndsWith(Text))
|
||||
if (!string.IsNullOrEmpty(Text) && line.EndsWith(Text, StringComparison.Ordinal))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
@ -149,4 +149,4 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -274,4 +274,4 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user