mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Merge pull request #148 from ivandrofly/patch-11
Improved: Use `char.ToUpper()` instead of `ToString().ToUpper()`...
This commit is contained in:
commit
ccb2037d2b
@ -2662,7 +2662,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
var st = new StripableText(p.Text);
|
||||
if (st.StrippedText.Length > 0 && st.StrippedText[0].ToString() != st.StrippedText[0].ToString().ToUpper())
|
||||
p.Text = st.Pre + st.StrippedText[0].ToString().ToUpper() + st.StrippedText.Remove(0, 1) + st.Post;
|
||||
p.Text = st.Pre + char.ToUpper(st.StrippedText[0]) + st.StrippedText.Substring(1) + st.Post;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user