shubhampawar355 / LogParserUsingRegex

0 stars 0 forks source link

Can lead to index out of range #2

Open blele opened 4 years ago

blele commented 4 years ago

https://github.com/shubhampawar355/LogParserUsingRegex/blob/31a586773cb91299f42bc6bb9a41fa02e00e7d86/logParser/UserInput.cs#L47

Code like this can give exception if user gives the arguments in random order. Put a check here