mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Add constant expected chars
This commit is contained in:
parent
2462b160f8
commit
5ee424b826
@ -250,10 +250,11 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
}
|
||||
|
||||
var p = new Paragraph();
|
||||
const string expectedChars = @"""'0123456789";
|
||||
while (syncStartPos >= 0)
|
||||
{
|
||||
string millisecAsString = string.Empty;
|
||||
while (index < allInput.Length && @"""'0123456789".Contains(allInput[index]))
|
||||
while (index < allInput.Length && expectedChars.Contains(allInput[index]))
|
||||
{
|
||||
if (allInput[index] != '"' && allInput[index] != '\'')
|
||||
millisecAsString += allInput[index];
|
||||
|
Loading…
Reference in New Issue
Block a user