allow empty entries in text field
This commit is contained in:
parent
029b35c820
commit
6a8dc1d62c
@ -33,6 +33,9 @@ namespace EliteBGS {
|
|||||||
List<Entry> entries = new List<Entry>();
|
List<Entry> entries = new List<Entry>();
|
||||||
|
|
||||||
foreach (string line in lines.Split('\n')) {
|
foreach (string line in lines.Split('\n')) {
|
||||||
|
if (string.IsNullOrEmpty(line)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Entry entry = Entry.Parse(line);
|
Entry entry = Entry.Parse(line);
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
@ -86,6 +89,9 @@ namespace EliteBGS {
|
|||||||
List<Entry> entries = new List<Entry>();
|
List<Entry> entries = new List<Entry>();
|
||||||
|
|
||||||
foreach (string line in lines.Split('\n')) {
|
foreach (string line in lines.Split('\n')) {
|
||||||
|
if (string.IsNullOrEmpty(line)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Entry entry = Entry.Parse(line);
|
Entry entry = Entry.Parse(line);
|
||||||
if (Report.IsRelevant(entry)) {
|
if (Report.IsRelevant(entry)) {
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user