Skip to content

Commit 44aabdd

Browse files
ruslansokolov-harmonicswhitty
authored andcommitted
Handle empty Path definition
1 parent 335e287 commit 44aabdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DOM/Sources/Parser.XML.Path.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ package extension XMLParser {
5050
}
5151

5252
func parsePathSegments(_ data: String) throws -> [Segment] {
53+
guard !data.isEmpty else { return [] }
5354

5455
var segments = Array<Segment>()
5556

0 commit comments

Comments
 (0)