mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-19 06:51:09 +00:00
DeHackEd: made reading comments in unexpected places more robust. Fixes #732
This commit is contained in:
parent
a1df690ae4
commit
183af344e6
1 changed files with 4 additions and 3 deletions
|
@ -195,10 +195,11 @@ namespace CodeImp.DoomBuilder.Dehacked
|
|||
linenumber++;
|
||||
string line = datareader.ReadLine();
|
||||
|
||||
// Cut everything from the line after a #, unless it's a editor key (#$)
|
||||
if (line != null)
|
||||
return line.Trim();
|
||||
else
|
||||
return null;
|
||||
return Regex.Replace(line, @"(#[^$].+)", "", RegexOptions.IgnoreCase).Trim();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue