mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[Hosts]Don't parse commented lines with an address and host in the middle (#26415)
This commit is contained in:
committed by
GitHub
parent
9960d2d536
commit
f6f31c8c32
@@ -74,6 +74,7 @@ namespace Hosts.Tests
|
||||
[DataRow("\t\thost\t\t10.1.1.1")]
|
||||
[DataRow(" host 10.1.1.1")]
|
||||
[DataRow("host 10.1.1.1")]
|
||||
[DataRow("# comment 10.1.1.1 host # comment")]
|
||||
public void Not_Valid_Entry(string line)
|
||||
{
|
||||
var entry = new Entry(0, line);
|
||||
|
||||
Reference in New Issue
Block a user