Skip to content

Commit 47ef5ae

Browse files
Davvex87joshtynjala
authored andcommitted
Comments and empty lines are ignored when parsing string
1 parent b90dee1 commit 47ef5ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hxp/HXML.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ abstract HXML(Array<String>)
410410

411411
for (line in lines)
412412
{
413-
value.push(StringTools.trim(line));
413+
var str = StringTools.trim(line);
414+
if (str.length == 0 || StringTools.startsWith(str, "#")) continue;
415+
value.push(str);
414416
}
415417
}
416418

0 commit comments

Comments
 (0)