Commit 511f3917 authored by Lukas Matt's avatar Lukas Matt

Tune regex for fetching entity order

parent f8e9eb3d
......@@ -24,7 +24,7 @@ import (
)
func FetchEntityOrder(entityXML string) (order string) {
re := regexp.MustCompile(`<([^>]+?)>[^<]+?</[^>]+?>`)
re := regexp.MustCompile(`<([^/<>]+?)>.+?</[^/<>]+?>`)
elements := re.FindAllStringSubmatch(entityXML, -1)
for _, element := range elements {
if len(element) == 2 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment